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我試過了,但它不工作,因爲項目中存在錯誤 –