我的包位于,src/Cinergy/Bundle/ComponentBundle/CinergyComponentBundle.php并且包的逻辑名称是'CinergyComponentBundle'.
由于我没有坚持公司的命名惯例,我必须更改捆绑的逻辑名称.让我知道我必须重命名它'XXXCinergyComponentBundle'
我需要更改哪些文件?
我尝试将CinergyComponentBundle.php文件和包含的类重命名为XXXCinergyComponentBundle.php.我还在AppKernel中更改了引用.
不幸的是,这不起作用.当我尝试清除缓存时,我收到以下错误消息:
[Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException]
The service "cinergy.people.direct.php" has a dependency on a non-existent service "cinergy.work.registry".
Run Code Online (Sandbox Code Playgroud)
这两个服务确实属于具有新名称的包.这使我得出结论,我在重命名过程中遗漏了一些东西.
有任何想法吗?