From 5fb2c33fd494bb08b22d19f448f1dddf59c966d6 Mon Sep 17 00:00:00 2001 From: MattBild Date: Fri, 23 Feb 2024 14:29:29 +0100 Subject: [PATCH 1/2] add void to fix deprecation --- src/DependencyInjection/UnivLorraineSymfonyCasExtension.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DependencyInjection/UnivLorraineSymfonyCasExtension.php b/src/DependencyInjection/UnivLorraineSymfonyCasExtension.php index a88ff75..01b6846 100644 --- a/src/DependencyInjection/UnivLorraineSymfonyCasExtension.php +++ b/src/DependencyInjection/UnivLorraineSymfonyCasExtension.php @@ -12,7 +12,7 @@ class UnivLorraineSymfonyCasExtension extends Extension /** * {@inheritdoc} */ - public function load(array $configs, ContainerBuilder $container) + public function load(array $configs, ContainerBuilder $container): void { $configuration = new Configuration(); $config = $this->processConfiguration($configuration, $configs); From 2a9fcb8280e5d59903f896fcde7ed6e5f81cf259 Mon Sep 17 00:00:00 2001 From: MattBild Date: Fri, 23 Feb 2024 15:13:35 +0100 Subject: [PATCH 2/2] also this one --- README.md | 2 +- src/Security/CasAuthenticator.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d662501..65046ed 100644 --- a/README.md +++ b/README.md @@ -111,7 +111,7 @@ The CAS Server can return additional attributes in addition to the main attribut When the user is authenticated, it is possible to get these attributes through the security token of Symfony: ```php -use Symfony\Component\Security\Core\Security; +use Symfony\Bundle\SecurityBundle\Security; public function myFunction (Security $security) { $user_attributes = $security->getToken()->getAttributes(); diff --git a/src/Security/CasAuthenticator.php b/src/Security/CasAuthenticator.php index 9265717..9097b4f 100644 --- a/src/Security/CasAuthenticator.php +++ b/src/Security/CasAuthenticator.php @@ -9,7 +9,7 @@ use Symfony\Component\Security\Core\Authentication\Token\TokenInterface; use Symfony\Component\Security\Core\Exception\AuthenticationException; use Symfony\Component\Security\Core\Exception\BadCredentialsException; -use Symfony\Component\Security\Core\Security; +use Symfony\Bundle\SecurityBundle\Security; use Symfony\Component\Security\Http\Authenticator\AbstractAuthenticator; use Symfony\Component\Security\Http\Authenticator\Passport\Badge\UserBadge; use Symfony\Component\Security\Http\Authenticator\Passport\Passport;