Symfony\Component\Security\Http\Firewall\ExceptionListener::register
Registers a onKernelException listener to take care of security exceptions.
Signature
public function register(EventDispatcherInterface
$dispatcher )
Parameters
$dispatcher
— Symfony\Component\EventDispatcher\EventDispatcherInterface- An EventDispatcherInterface instance