minor #10407 [Security] Use more accurate variable name (lyrixx)

This PR was submitted for the 2.4-dev branch but it was merged into the 2.4 branch instead (closes #10407).

Discussion
----------

[Security] Use more accurate variable name

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | N/A
| License       | MIT
| Doc PR        | N/A

Sorry for the noise, but everytime I open this class, I wonder what is `$exception`.

Commits
-------

f34e716 [Security] Use more accurate variable name
This commit is contained in:
Fabien Potencier 2014-03-09 20:38:15 +01:00
commit d16c0724e0

View File

@ -58,10 +58,10 @@ class Firewall implements EventSubscriberInterface
}
// register listeners for this firewall
list($listeners, $exception) = $this->map->getListeners($event->getRequest());
if (null !== $exception) {
$this->exceptionListeners[$event->getRequest()] = $exception;
$exception->register($this->dispatcher);
list($listeners, $exceptionListener) = $this->map->getListeners($event->getRequest());
if (null !== $exceptionListener) {
$this->exceptionListeners[$event->getRequest()] = $exceptionListener;
$exceptionListener->register($this->dispatcher);
}
// initiate the listener chain