2016-06-21 74 views
0

我一直在使用作曲家
php bin/console generate:bundle安裝了一個新包,我命名爲TestBundle(只是爲了熟悉的命令),在那之後我按照論文的步驟將其刪除:
Symfony2的呼籲未知束

  1. 從AppKernel.php刪除
  2. 刪除它從應用程序路徑/配置/ routing.yml中
  3. 最後我刪除了此包中的相關文件夾

現在每個我打開我的應用程序的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我講述了一個捆綁的錯誤,不存在?!

+1

你清除了緩存嗎? –

+0

我建議你只需搜索你的項目'TestBundle'。 每個現代IDE都能夠自動搜索所有文件 –

+0

@BenHillier我試過了,但它不工作,因爲項目中存在錯誤 –

回答

0

像@qooplmao說,當你安裝通過命令行來捆綁它添加包類名的AppKernel.php和路由值的routing.yml除了它從新生成的束導入services.yml文件到全球config.yml根據app/config您需要刪除該導入語句。