Symfony 手动删除一个包
Symfony delete a bundle manually
我尝试手动删除捆绑包,但出现错误...
我想我忘记了基本版,但我不知道是什么。
我删除了那个包的文件,我删除了它在 AppKernel
中的行,我删除了它在 app/routing.yml
.
中的行
这是错误:
FileLoaderLoadException in FileLoader.php line 118:
Bundle "DbToYmlBundle" does not exist or it is not enabled. Maybe you forgot to add it in the registerBundles() method of your AppKernel.php file? in @DbToYmlBundle/Resources/config/services.yml (which is being imported from "/opt/lampp/htdocs/dublin/app/config/config.yml"). Make sure the "DbToYmlBundle" bundle is correctly registered and loaded in the application kernel class. If the bundle is registered, make sure the bundle path "@DbToYmlBundle/Resources/config/services.yml" is not empty.
有人可以帮忙找出问题所在吗?
错误消息指出 @DbToYmlBundle/Resources/config/services.yml
是从 /opt/lampp/htdocs/dublin/app/config/config.yml
导入的
请检查您的 config.yml
或提供更多 information/codes,也许是您的 prod.log
/opt/lampp/htdocs/dublin/app/logs/prod.log
的输出
您可以尝试使用控制台清除缓存。
对于开发环境:
php bin/console cache:clear
对于生产环境:
php bin/console cache:clear --env=prod
我尝试手动删除捆绑包,但出现错误...
我想我忘记了基本版,但我不知道是什么。
我删除了那个包的文件,我删除了它在 AppKernel
中的行,我删除了它在 app/routing.yml
.
这是错误:
FileLoaderLoadException in FileLoader.php line 118: Bundle "DbToYmlBundle" does not exist or it is not enabled. Maybe you forgot to add it in the registerBundles() method of your AppKernel.php file? in @DbToYmlBundle/Resources/config/services.yml (which is being imported from "/opt/lampp/htdocs/dublin/app/config/config.yml"). Make sure the "DbToYmlBundle" bundle is correctly registered and loaded in the application kernel class. If the bundle is registered, make sure the bundle path "@DbToYmlBundle/Resources/config/services.yml" is not empty.
有人可以帮忙找出问题所在吗?
错误消息指出 @DbToYmlBundle/Resources/config/services.yml
是从 /opt/lampp/htdocs/dublin/app/config/config.yml
请检查您的 config.yml
或提供更多 information/codes,也许是您的 prod.log
/opt/lampp/htdocs/dublin/app/logs/prod.log
您可以尝试使用控制台清除缓存。 对于开发环境:
php bin/console cache:clear
对于生产环境:
php bin/console cache:clear --env=prod