Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@
RemoveUnusedPrivateClassConstantRector::class,
RemoveUnusedPrivateMethodParameterRector::class,
RemoveUnusedPrivatePropertyRector::class,
RemoveUnusedPromotedPropertyRector::class,
// RemoveUnusedPromotedPropertyRector::class,
RemoveUnusedVariableAssignRector::class,
RemoveUnusedVariableInCatchRector::class,
RemoveUselessReturnTagRector::class,
Expand Down
2 changes: 2 additions & 0 deletions src/Security/Authenticator.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

use Auth0\Symfony\Contracts\Security\AuthenticatorInterface;
use Auth0\Symfony\Service;
use Psr\Log\LoggerInterface;
use Symfony\Component\HttpFoundation\{RedirectResponse, Request, Response};
use Symfony\Component\Routing\RouterInterface;
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
Expand All @@ -21,6 +22,7 @@ public function __construct(
public array $configuration,
public Service $service,
private RouterInterface $router,
private LoggerInterface $logger,
) {
}

Expand Down
2 changes: 2 additions & 0 deletions src/Security/Authorizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

use Auth0\Symfony\Contracts\Security\AuthorizerInterface;
use Auth0\Symfony\Service;
use Psr\Log\LoggerInterface;
use Symfony\Component\HttpFoundation\{JsonResponse, Request, Response};
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
use Symfony\Component\Security\Core\Exception\AuthenticationException;
Expand All @@ -18,6 +19,7 @@ final class Authorizer extends AbstractAuthenticator implements AuthorizerInterf
public function __construct(
private array $configuration,
private Service $service,
private LoggerInterface $logger,
) {
}

Expand Down
6 changes: 6 additions & 0 deletions src/Security/UserProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,17 @@
use Auth0\Symfony\Models\Stateful\User as StatefulUser;
use Auth0\Symfony\Models\Stateless\User as StatelessUser;
use Auth0\Symfony\Models\User;
use Auth0\Symfony\Service;
use Symfony\Component\Security\Core\Exception\UnsupportedUserException;
use Symfony\Component\Security\Core\User\{UserInterface as SymfonyUserInterface, UserProviderInterface as SymfonyUserProviderInterface};

final class UserProvider implements SymfonyUserProviderInterface, UserProviderInterface
{
public function __construct(
private Service $service,
) {
}

public function loadByUserModel(User $user): SymfonyUserInterface
{
return $user;
Expand Down
2 changes: 2 additions & 0 deletions src/Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
use Auth0\SDK\Configuration\SdkConfiguration;
use Auth0\SDK\Utility\HttpTelemetry;
use Auth0\Symfony\Contracts\ServiceInterface;
use Psr\Log\LoggerInterface;
use Symfony\Component\HttpFoundation\RequestStack;
use Symfony\Component\HttpKernel\Kernel;

Expand All @@ -20,6 +21,7 @@ final class Service implements ServiceInterface
public function __construct(
private SdkConfiguration $configuration,
private RequestStack $requestStack,
private LoggerInterface $logger,
) {
}

Expand Down
2 changes: 2 additions & 0 deletions src/Stores/SessionStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace Auth0\Symfony\Stores;

use Auth0\SDK\Contract\StoreInterface;
use Psr\Log\LoggerInterface;
use Symfony\Component\HttpFoundation\Session\SessionInterface;
use Symfony\Component\HttpFoundation\{Request, RequestStack};
use Throwable;
Expand All @@ -14,6 +15,7 @@ final class SessionStore implements StoreInterface
public function __construct(
private $namespace,
private RequestStack $requestStack,
private LoggerInterface $logger,
) {
}

Expand Down