【发布时间】:2015-07-27 07:15:11
【问题描述】:
我想从EnrichBundle 覆盖ProductController。
一切都在开发模式下工作,但是当我想使用 php app/console pim:install --env=prod --force 将它安装在我们的生产服务器上时,我收到错误并且 Akeneo 无法正常工作:
Load "Title Templates" from annotations and config files to db
[Symfony\Component\Config\Definition\Exception\InvalidConfigurationException]
Title for route "pim_enrich_attributegroup_index" could not be saved. Route not found.
oro:navigation:init
The command terminated with an error code: 1.
如果我取消注释MyEnrichBundle 中的getParent() 方法,安装工作正常,但我的ProductController 不再起作用。
class MyEnrichBundle extends Bundle
{
public function getParent()
{
return 'PimEnrichBundle';
}
}
如何避免这些 ORO 安装错误?
【问题讨论】:
-
您能否解释一下从 EnrichBundle (/Pim/Bundle/EnrichBundle/Controller/Rest/productController) 覆盖 productController 的步骤?