我想尝试做类似以下问题:
但是,当我使用代码时(如答案中所建议的那样):
$event->setController('MyMainBundle:Manage:show');
Run Code Online (Sandbox Code Playgroud)
我刚收到一个错误:
LogicException: The controller must be a callable (MyMainBundle:Manage:show given).
Run Code Online (Sandbox Code Playgroud)
有没有办法在setController中使用Bundle:Controller:Method语法?或者也许我可以调用其他方法将其解析为"可调用"?
symfony ×1