|
@@ 47-49 (lines=3) @@
|
| 44 |
|
} |
| 45 |
|
|
| 46 |
|
if ($this->options['failure_forward']) { |
| 47 |
|
if (null !== $this->logger) { |
| 48 |
|
$this->logger->debug('Authentication failure, forward triggered.', array('failure_path' => $this->options['failure_path'])); |
| 49 |
|
} |
| 50 |
|
|
| 51 |
|
$subRequest = $this->httpUtils->createRequest($request, $this->options['failure_path']); |
| 52 |
|
$subRequest->attributes->set(Security::AUTHENTICATION_ERROR, $exception); |
|
@@ 57-59 (lines=3) @@
|
| 54 |
|
return $this->httpKernel->handle($subRequest, HttpKernelInterface::SUB_REQUEST); |
| 55 |
|
} |
| 56 |
|
|
| 57 |
|
if (null !== $this->logger) { |
| 58 |
|
$this->logger->debug('Authentication failure, redirect triggered.', array('failure_path' => $this->options['failure_path'])); |
| 59 |
|
} |
| 60 |
|
|
| 61 |
|
$request->getSession()->set(Security::AUTHENTICATION_ERROR, $exception); |
| 62 |
|
|