1
所以我做了扩展Symfony\Bundle\FrameworkBundle\Routing\Router
一个类,定义为使用router.class: My\Bundle\Router\Class
我在配置默认的,但现在我每次改变的东西作为路由模式或名称,我得到这么简单的时间...如何正确覆盖默认路由器?
Fatal error: Call to a member function get() on a non-object in /.../app/cache/dev/classes.php on line 312
在该行有:
$this->collection = $this->container->get('routing.loader')->load($this->resource, $this->options['resource_type']);
我缺少什么?
感谢你加入一个解决方案,@meze! –
谢谢你们!这是问题,“私人”......这让我疯狂,我没有看到它。 – coma