Skip to content

Commit

Permalink
feat: Upgrade Symfony version
Browse files Browse the repository at this point in the history
  • Loading branch information
Makar Sichevoi committed Sep 4, 2024
1 parent d099ca0 commit 5e111f5
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 66 deletions.
25 changes: 5 additions & 20 deletions Security/Firewall/Message/LtiPlatformMessageAuthenticator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
31 changes: 6 additions & 25 deletions Security/Firewall/Message/LtiToolMessageAuthenticator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
26 changes: 5 additions & 21 deletions Security/Firewall/Service/LtiServiceAuthenticator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5e111f5

Please sign in to comment.