Skip to content

Commit

Permalink
Refact: Use AccessTokenStorageInterface instead of AccessTokenSession…
Browse files Browse the repository at this point in the history
…Storage
  • Loading branch information
LevFlavien committed May 3, 2024
1 parent dc42ad3 commit 1c6c3d1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Controller/WelcomeAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace App\Controller;

use App\Storage\AccessTokenSessionStorage;
use App\Storage\AccessTokenStorageInterface;
use App\Validator\ReachableUrl;
use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\HttpFoundation\Request;
Expand All @@ -20,7 +20,7 @@ final class WelcomeAction
public function __construct(
private TwigEnvironment $twig,
private RouterInterface $router,
private AccessTokenSessionStorage $accessTokenSessionStorage,
private AccessTokenStorageInterface $accessTokenStorage,
private ValidatorInterface $validator,
) {
}
Expand All @@ -42,7 +42,7 @@ public function __invoke(Request $request): Response

$session->set('pim_url', \rtrim((string) $pimUrl, '/'));

$accessToken = $this->accessTokenSessionStorage->getAccessToken();
$accessToken = $this->accessTokenStorage->getAccessToken();
if (null !== $accessToken) {
return new RedirectResponse($this->router->generate('catalogs'));
}
Expand Down

0 comments on commit 1c6c3d1

Please sign in to comment.