Ojs\CoreBundle\Listeners\ExceptionListener::onMethodNotAllowedHttpException PHP Method

onMethodNotAllowedHttpException() private method

private onMethodNotAllowedHttpException ( GetResponseForExceptionEvent $event )
$event Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent
    private function onMethodNotAllowedHttpException(GetResponseForExceptionEvent $event)
    {
        $response = new RedirectResponse('/');
        $event->setResponse($response);
    }