File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 4
4
5
5
namespace App \Controller ;
6
6
7
- use App \Storage \AccessTokenSessionStorage ;
7
+ use App \Storage \AccessTokenStorageInterface ;
8
8
use App \Validator \ReachableUrl ;
9
9
use Symfony \Component \HttpFoundation \RedirectResponse ;
10
10
use Symfony \Component \HttpFoundation \Request ;
@@ -20,7 +20,7 @@ final class WelcomeAction
20
20
public function __construct (
21
21
private TwigEnvironment $ twig ,
22
22
private RouterInterface $ router ,
23
- private AccessTokenSessionStorage $ accessTokenSessionStorage ,
23
+ private AccessTokenStorageInterface $ accessTokenStorage ,
24
24
private ValidatorInterface $ validator ,
25
25
) {
26
26
}
@@ -42,7 +42,7 @@ public function __invoke(Request $request): Response
42
42
43
43
$ session ->set ('pim_url ' , \rtrim ((string ) $ pimUrl , '/ ' ));
44
44
45
- $ accessToken = $ this ->accessTokenSessionStorage ->getAccessToken ();
45
+ $ accessToken = $ this ->accessTokenStorage ->getAccessToken ();
46
46
if (null !== $ accessToken ) {
47
47
return new RedirectResponse ($ this ->router ->generate ('catalogs ' ));
48
48
}
You can’t perform that action at this time.
0 commit comments