繁体   English   中英

覆盖捆绑包配置文件

[英]Override bundle config files

我试图覆盖捆绑中的配置文件。 我在这里做任何事情: http ://symfony.com/doc/current/cookbook/bundles/inheritance.html,但对我来说,解决方案确实有效。

我有一个具有功能getParent()的类

public function getParent()
{
    return 'ParentBundle';
}

在Resources / config / storage.xml中还有一个配置文件。 为什么子捆绑包中的这个storage.xml起作用?

首先,您是否清除了缓存?

如果仍然无法使用,则应确保使用@FooBundle/Resource/config/storage.xml语法来尝试覆盖的@FooBundle/Resource/config/storage.xml

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM