0
我一直在使用作曲家
php bin/console generate:bundle
安装了一个新包,我命名为TestBundle
(只是为了熟悉的命令),在那之后我按照论文的步骤将其删除:
Symfony2的呼吁未知束
- 从AppKernel.php删除
- 删除它从应用程序路径/配置/ routing.yml中
- 最后我删除了此包中的相关文件夹
现在每个我打开我的应用程序的symfony时间表示我这个错误:
Bundle "TestBundle" does not exist or it is not enabled. Maybe you forgot to add it in the registerBundles() method of your AppKernel.php file? in @TestBundle/Resources/config/services.yml (which is being imported from "C:\wamp\www\symfony1\app/config\config.yml"). Make sure the "TestBundle/Resources/config/services.yml" bundle is correctly registered and loaded in the application kernel class. If the bundle is registered, make sure the bundle path "@TestBundle/Resources/config/services.yml" is not empty.
的symfony如何保持shwoing我讲述了一个捆绑的错误,不存在?!
你清除了缓存吗? –
我建议你只需搜索你的项目'TestBundle'。 每个现代IDE都能够自动搜索所有文件 –
@BenHillier我试过了,但它不工作,因为项目中存在错误 –