3
我想执行一个子请求,但没有格式为$ this-> forward()的路由 - 我只有url作为字符串。如何在Symfony2中使用URL字符串转发请求
// Symfony2 wants...
$this->forward('ProjectCustomerBundle:Customer:view', array('id' => 1234));
// I want...
$this->forward('customer/view/1234');
当然,我可以从url手动构建一个Route或Request对象来实现这个目标?我有一个偷偷摸摸的怀疑,我错过了这里明显的东西...