Symfony 3.0 - Cannot load resource “.” - Custom Route Loader

主宰稳场 提交于 2019-12-24 02:25:40

问题


I am working on upgrading one of my projects to SF 3:
The project uses some custom routing loaders which where working without problems before, now I am getting a FileLoaderLoadException stating that the resource "." couldn't be loaded.

I took a look at the documentation: http://symfony.com/doc/current/cookbook/routing/custom_route_loader.html

But either nothing has changed or the documentation has not been updated.

My routing.yml configuration looks like this:

custom_sidebar_routing:
    resource: .
    type: sidebar

Can someone give me a hint what is wrong here or can confirm that this is a bug inside symfony core?


回答1:


Solved my problem, configuration was good, but I missed to register my additional routing_loader.yml (in which I had defined my loader services) inside the BundleExtensionFile in the DependencyInjection folder



来源:https://stackoverflow.com/questions/36398785/symfony-3-0-cannot-load-resource-custom-route-loader

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!