草庐IT

ExceptionController

全部标签

php - Symfony 2.2 扩展 ExceptionController

此问题与followingchange有关(Symfony2.2版本的一部分):第1部分在Symfony2.2之前的版本中,我覆盖了ExceptionController以显示一些自定义错误页面。我是通过:parameters:twig.exception_listener.controller:My\CustomBundle\CustomExceptionController::showAction现在,升级到2.2后,我不能再这样做了,因为在生成异常时会抛出异常(无双关语):ExceptionController::__construct()mustbeaninstanceofTw