Ich verstehe das: http://symfony.com/doc/2.1/reference/configuration/twig.html (Version 2.1) und wie man ein Bundle für exception_controller referenziert:
exception_controller: SymfonyBundleTwigBundleControllerExceptionController::showAction
Aber ich verstehe nicht, wie es für Version 2.2 (die ich verwende) (http://symfony.com/doc/current/reference/configuration/twig.html)
exception_controller: twig.controller.exception:showAction
Mein Bundle befindet sich unter:
AcmeBundleMyBundleControllerMyController::runAction
... wie beziehe ich mich in 2.2 darauf?
Antworten:
0 für die Antwort № 1Sie müssen nur die Unterstreichungsnotation verwenden:
acme_my.controller.my:runAction
wenn dein Bundle definiert ist als AcmeMyBundle
. Also wenn ich ein AcmeUserBundle habe und den Controller benutze ExceptionController
Ich würde so etwas tun:
acme_user.controller.exception:debugAction