[英]Override bundle config files
im trying to override a config files from a bundle. 我试图覆盖捆绑中的配置文件。 Im doing everthing like here: http://symfony.com/doc/current/cookbook/bundles/inheritance.html , but for me that solution dosent work.
我在这里做任何事情: http ://symfony.com/doc/current/cookbook/bundles/inheritance.html,但对我来说,解决方案确实有效。
I have a class which has function getParent() 我有一个具有功能getParent()的类
public function getParent()
{
return 'ParentBundle';
}
And a config file in Resources/config/storage.xml. 在Resources / config / storage.xml中还有一个配置文件。 Why this storage.xml from child bundle dosent work ?
为什么子捆绑包中的这个storage.xml起作用?
First, have you cleared your cache ? 首先,您是否清除了缓存?
If it still doesn't work, you should ensure the budnle you are trying to override uses the @FooBundle/Resource/config/storage.xml
syntax. 如果仍然无法使用,则应确保使用
@FooBundle/Resource/config/storage.xml
语法来尝试覆盖的@FooBundle/Resource/config/storage.xml
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.