引用Symfony2.2中更改的捆绑包/控制器/文件?

引用Symfony2.2中更改的捆绑包/控制器/文件?,symfony,symfony-2.2,Symfony,Symfony 2.2,我理解这一点:(版本2.1)以及如何为异常控制器引用捆绑包: exception_controller: Symfony\Bundle\TwigBundle\Controller\ExceptionController::showAction 但是我不明白如何为2.2版(我正在使用的)做到这一点() 我的捆绑包位于: Acme\Bundle\MyBundle\Controller\MyController::runAction …如何在2.2中引用它?看起来您只需要使用下划线符号: acm

我理解这一点:(版本2.1)以及如何为异常控制器引用捆绑包:

exception_controller:  Symfony\Bundle\TwigBundle\Controller\ExceptionController::showAction
但是我不明白如何为2.2版(我正在使用的)做到这一点()

我的捆绑包位于:

Acme\Bundle\MyBundle\Controller\MyController::runAction

…如何在2.2中引用它?

看起来您只需要使用下划线符号:

acme_my.controller.my:runAction
如果您的捆绑包定义为
AcmeMyBundle
。因此,如果我有一个AcmeUserBundle并使用controller
ExceptionController
我会这样:

acme_user.controller.exception:debugAction

我无法让它工作,我发现twig.controller.exception是对服务的引用
acme_user.controller.exception:debugAction