Skip to content

Commit

Permalink
fix: update services and decorators
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Dec 15, 2022
1 parent f14d7c7 commit 55c2c0f
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/Resources/config/services.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
use EcPhp\Ecas\Introspection\EcasIntrospector;
use EcPhp\EuLoginBundle\Security\Core\User\EuLoginUserProvider;

return static function (ContainerConfigurator $container) {
return static function (ContainerConfigurator $container): void {
$services = $container->services();

$services
Expand All @@ -27,19 +27,21 @@
$services
->set('ecas.introspector', EcasIntrospector::class)
->decorate('cas.introspector')
->arg('$introspector', service('ecas.introspector.inner'));
->arg('$introspector', service('.inner'));

$services
->set('eulogin.userprovider', EuLoginUserProvider::class)
->arg('$casUserProvider', service('cas.userprovider'));
->decorate('cas.userprovider')
->arg('$casUserProvider', service('.inner'));
$services->alias(EuLoginUserProvider::class, 'eulogin.userprovider');

$services
->set('ecas.configuration', EcasProperties::class)
->decorate('cas.configuration')
->arg('$casProperties', service('ecas.configuration.inner'));
->arg('$casProperties', service('.inner'));

$services
->set('ecas', Ecas::class)
->decorate('cas')
->arg('$cas', service('ecas.inner'));
->arg('$cas', service('.inner'));
};

0 comments on commit 55c2c0f

Please sign in to comment.