@@ -78,7 +78,7 @@ abstract class AbstractAuthenticationListener implements ListenerInterface
7878 *
7979 * @throws \InvalidArgumentException
8080 */
81- public function __construct (TokenStorageInterface $ tokenStorage , AuthenticationManagerInterface $ authenticationManager , SessionAuthenticationStrategyInterface $ sessionStrategy , HttpUtils $ httpUtils , $ providerKey , AuthenticationSuccessHandlerInterface $ successHandler , AuthenticationFailureHandlerInterface $ failureHandler , array $ options = array () , LoggerInterface $ logger = null , EventDispatcherInterface $ dispatcher = null )
81+ public function __construct (TokenStorageInterface $ tokenStorage , AuthenticationManagerInterface $ authenticationManager , SessionAuthenticationStrategyInterface $ sessionStrategy , HttpUtils $ httpUtils , $ providerKey , AuthenticationSuccessHandlerInterface $ successHandler , AuthenticationFailureHandlerInterface $ failureHandler , array $ options = [] , LoggerInterface $ logger = null , EventDispatcherInterface $ dispatcher = null )
8282 {
8383 if (empty ($ providerKey )) {
8484 throw new \InvalidArgumentException ('$providerKey must not be empty. ' );
@@ -90,7 +90,7 @@ public function __construct(TokenStorageInterface $tokenStorage, AuthenticationM
9090 $ this ->providerKey = $ providerKey ;
9191 $ this ->successHandler = $ successHandler ;
9292 $ this ->failureHandler = $ failureHandler ;
93- $ this ->options = array_merge (array (
93+ $ this ->options = array_merge ([
9494 'check_path ' => '/login_check ' ,
9595 'login_path ' => '/login ' ,
9696 'always_use_default_target_path ' => false ,
@@ -100,7 +100,7 @@ public function __construct(TokenStorageInterface $tokenStorage, AuthenticationM
100100 'failure_path ' => null ,
101101 'failure_forward ' => false ,
102102 'require_previous_session ' => true ,
103- ) , $ options );
103+ ] , $ options );
104104 $ this ->logger = $ logger ;
105105 $ this ->dispatcher = $ dispatcher ;
106106 $ this ->httpUtils = $ httpUtils ;
@@ -183,7 +183,7 @@ abstract protected function attemptAuthentication(Request $request);
183183 private function onFailure (Request $ request , AuthenticationException $ failed )
184184 {
185185 if (null !== $ this ->logger ) {
186- $ this ->logger ->info ('Authentication request failed. ' , array ( 'exception ' => $ failed) );
186+ $ this ->logger ->info ('Authentication request failed. ' , [ 'exception ' => $ failed] );
187187 }
188188
189189 $ token = $ this ->tokenStorage ->getToken ();
@@ -203,7 +203,7 @@ private function onFailure(Request $request, AuthenticationException $failed)
203203 private function onSuccess (Request $ request , TokenInterface $ token )
204204 {
205205 if (null !== $ this ->logger ) {
206- $ this ->logger ->info ('User has been authenticated successfully. ' , array ( 'username ' => $ token ->getUsername ()) );
206+ $ this ->logger ->info ('User has been authenticated successfully. ' , [ 'username ' => $ token ->getUsername ()] );
207207 }
208208
209209 $ this ->tokenStorage ->setToken ($ token );
0 commit comments