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:
commit
d16c0724e0
@ -58,10 +58,10 @@ class Firewall implements EventSubscriberInterface
|
|||||||
}
|
}
|
||||||
|
|
||||||
// register listeners for this firewall
|
// register listeners for this firewall
|
||||||
list($listeners, $exception) = $this->map->getListeners($event->getRequest());
|
list($listeners, $exceptionListener) = $this->map->getListeners($event->getRequest());
|
||||||
if (null !== $exception) {
|
if (null !== $exceptionListener) {
|
||||||
$this->exceptionListeners[$event->getRequest()] = $exception;
|
$this->exceptionListeners[$event->getRequest()] = $exceptionListener;
|
||||||
$exception->register($this->dispatcher);
|
$exceptionListener->register($this->dispatcher);
|
||||||
}
|
}
|
||||||
|
|
||||||
// initiate the listener chain
|
// initiate the listener chain
|
||||||
|
Reference in New Issue
Block a user