Skip to content

Commit

Permalink
refactor: Add extra aliases to CAS services.
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Aug 25, 2022
1 parent 54e6896 commit 3edc20b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 20 deletions.
29 changes: 10 additions & 19 deletions src/Resources/config/services.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,26 +34,20 @@
->autoconfigure(true)
->autowire(true);

$services
->set('cas', Cas::class);
$services->set('cas', Cas::class);
$services->alias(CasInterface::class, 'cas');

$services
->alias(CasInterface::class, 'cas');
$services->set('cas.introspector', Introspector::class);
$services->alias(IntrospectorInterface::class, 'cas.introspector');

$services
->set('cas.configuration', Symfony::class);
$services->set('cas.configuration', Symfony::class);
$services->alias(PropertiesInterface::class, 'cas.configuration');

$services
->set('cas.introspector', Introspector::class);
$services->set('cas.userprovider', CasUserProvider::class);
$services->alias(CasUserProvider::class, 'cas.userprovider');

$services
->set('cas.userprovider', CasUserProvider::class);

$services
->alias(IntrospectorInterface::class, 'cas.introspector');

$services
->set('cas.authenticator', CasAuthenticator::class);
$services->set('cas.authenticator', CasAuthenticator::class);
$services->alias(CasAuthenticator::class, 'cas.authenticator');

$services
->set(Homepage::class)
Expand All @@ -71,9 +65,6 @@
->set(ProxyCallback::class)
->tag('controller.service_arguments');

$services
->alias(PropertiesInterface::class, 'cas.configuration');

/**
* All of this needs to be removed for the next major
* version of ecphp/cas-lib
Expand Down
2 changes: 1 addition & 1 deletion src/Security/Core/User/CasUserProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

use function get_class;

class CasUserProvider implements CasUserProviderInterface
final class CasUserProvider implements CasUserProviderInterface
{
private IntrospectorInterface $introspector;

Expand Down

0 comments on commit 3edc20b

Please sign in to comment.