From 5e111f5c468f851e32651f30c28f33469f504a83 Mon Sep 17 00:00:00 2001 From: Makar Sichevoi Date: Wed, 4 Sep 2024 10:44:02 +0300 Subject: [PATCH] feat: Upgrade Symfony version --- .../LtiPlatformMessageAuthenticator.php | 25 +++------------ .../Message/LtiToolMessageAuthenticator.php | 31 ++++--------------- .../Service/LtiServiceAuthenticator.php | 26 +++------------- 3 files changed, 16 insertions(+), 66 deletions(-) diff --git a/Security/Firewall/Message/LtiPlatformMessageAuthenticator.php b/Security/Firewall/Message/LtiPlatformMessageAuthenticator.php index 58409fc..3a876a3 100644 --- a/Security/Firewall/Message/LtiPlatformMessageAuthenticator.php +++ b/Security/Firewall/Message/LtiPlatformMessageAuthenticator.php @@ -41,28 +41,13 @@ class LtiPlatformMessageAuthenticator extends AbstractAuthenticator { - private HttpMessageFactoryInterface $factory; - - private FirewallMap $firewallMap; - - private PlatformLaunchValidatorInterface $validator; - - private string $firewallName; - - private array $types; - public function __construct( - FirewallMap $firewallMap, - HttpMessageFactoryInterface $factory, - PlatformLaunchValidatorInterface $validator, - string $firewallName, - array $types = [] + private FirewallMap $firewallMap, + private HttpMessageFactoryInterface $factory, + private PlatformLaunchValidatorInterface $validator, + private string $firewallName, + private array $types = [] ) { - $this->factory = $factory; - $this->firewallMap = $firewallMap; - $this->validator = $validator; - $this->firewallName = $firewallName; - $this->types = $types; } public function supports(Request $request): ?bool diff --git a/Security/Firewall/Message/LtiToolMessageAuthenticator.php b/Security/Firewall/Message/LtiToolMessageAuthenticator.php index f8bef52..f114e97 100644 --- a/Security/Firewall/Message/LtiToolMessageAuthenticator.php +++ b/Security/Firewall/Message/LtiToolMessageAuthenticator.php @@ -41,33 +41,14 @@ class LtiToolMessageAuthenticator extends AbstractAuthenticator { - private HttpMessageFactoryInterface $factory; - - private LtiToolMessageExceptionHandlerInterface $handler; - - private FirewallMap $firewallMap; - - private ToolLaunchValidatorInterface $validator; - - private string $firewallName; - - private array $types; - - public function __construct( - FirewallMap $firewallMap, - HttpMessageFactoryInterface $factory, - LtiToolMessageExceptionHandlerInterface $handler, - ToolLaunchValidatorInterface $validator, - string $firewallName, - array $types = [] + private FirewallMap $firewallMap, + private HttpMessageFactoryInterface $factory, + private LtiToolMessageExceptionHandlerInterface $handler, + private ToolLaunchValidatorInterface $validator, + private string $firewallName, + private array $types = [] ) { - $this->factory = $factory; - $this->handler = $handler; - $this->firewallMap = $firewallMap; - $this->validator = $validator; - $this->firewallName = $firewallName; - $this->types = $types; } public function supports(Request $request): ?bool diff --git a/Security/Firewall/Service/LtiServiceAuthenticator.php b/Security/Firewall/Service/LtiServiceAuthenticator.php index 1a7ba9a..fe6e317 100644 --- a/Security/Firewall/Service/LtiServiceAuthenticator.php +++ b/Security/Firewall/Service/LtiServiceAuthenticator.php @@ -40,29 +40,13 @@ class LtiServiceAuthenticator extends AbstractAuthenticator { - private HttpMessageFactoryInterface $factory; - - private FirewallMap $firewallMap; - - private $validator; - - private string $firewallName; - - /** string[] */ - private array $scopes; - public function __construct( - FirewallMap $firewallMap, - HttpMessageFactoryInterface $factory, - RequestAccessTokenValidatorInterface $validator, - string $firewallName, - array $scopes = [] + private FirewallMap $firewallMap, + private HttpMessageFactoryInterface $factory, + private RequestAccessTokenValidatorInterface $validator, + private string $firewallName, + private array $scopes = [] ) { - $this->factory = $factory; - $this->firewallMap = $firewallMap; - $this->validator = $validator; - $this->firewallName = $firewallName; - $this->scopes = $scopes; } public function supports(Request $request): ?bool