覆盖bundle配置文件



im试图覆盖捆绑包中的配置文件。我做的每件事都是这样的:http://symfony.com/doc/current/cookbook/bundles/inheritance.html,但对我来说,那个解决方案不起作用。

我有一个类,它有函数getParent()

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

和Resources/config/storage.xml中的配置文件。为什么子捆绑包中的storage.xml不起作用?

首先,您清除缓存了吗?

如果它仍然不起作用,您应该确保您试图覆盖的budnle使用@FooBundle/Resource/config/storage.xml语法。

最新更新