Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7de05be

Browse files
committed
A few more changes thanks to @iltar
1 parent ffdbc66 commit 7de05be

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Symfony/Component/Security/Guard/Firewall/GuardAuthenticationListener.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class GuardAuthenticationListener implements ListenerInterface
3636
* @param GuardAuthenticatorInterface[] $guardAuthenticators The authenticators, with keys that match what's passed to GuardAuthenticationProvider
3737
* @param LoggerInterface $logger A LoggerInterface instance
3838
*/
39-
public function __construct(GuardAuthenticatorHandler $guardHandler, AuthenticationManagerInterface $authenticationManager, $providerKey, $guardAuthenticators, LoggerInterface $logger = null)
39+
public function __construct(GuardAuthenticatorHandler $guardHandler, AuthenticationManagerInterface $authenticationManager, $providerKey, array $guardAuthenticators, LoggerInterface $logger = null)
4040
{
4141
if (empty($providerKey)) {
4242
throw new \InvalidArgumentException('$providerKey must not be empty.');
@@ -57,7 +57,7 @@ public function __construct(GuardAuthenticatorHandler $guardHandler, Authenticat
5757
public function handle(GetResponseEvent $event)
5858
{
5959
if (null !== $this->logger) {
60-
$this->logger->info('Checking for guard authentication credentials', array('firewall_key' => $this->providerKey, 'authenticators' => count($this->guardAuthenticators)));
60+
$this->logger->info('Checking for guard authentication credentials.', array('firewall_key' => $this->providerKey, 'authenticators' => count($this->guardAuthenticators)));
6161
}
6262

6363
foreach ($this->guardAuthenticators as $key => $guardAuthenticator) {
@@ -121,13 +121,13 @@ private function executeGuardAuthenticator($uniqueGuardKey, GuardAuthenticatorIn
121121
$response = $this->guardHandler->handleAuthenticationSuccess($token, $request, $guardAuthenticator, $this->providerKey);
122122
if ($response instanceof Response) {
123123
if (null !== $this->logger) {
124-
$this->logger->info('Guard authenticator set success response', array('response' => $response, 'authenticator' => get_class($guardAuthenticator)));
124+
$this->logger->info('Guard authenticator set success response.', array('response' => $response, 'authenticator' => get_class($guardAuthenticator)));
125125
}
126126

127127
$event->setResponse($response);
128128
} else {
129129
if (null !== $this->logger) {
130-
$this->logger->info('Guard authenticator set no success response: request continues', array('authenticator' => get_class($guardAuthenticator)));
130+
$this->logger->info('Guard authenticator set no success response: request continues.', array('authenticator' => get_class($guardAuthenticator)));
131131
}
132132
}
133133

0 commit comments

Comments
 (0)