我安装了 FOS Userbundle 以从中学习,但我决定不再需要它。然后我做了以下操作来删除它。删除后,我运行了作曲家更新。
- 从供应商文件夹中删除了捆绑包
- 从 appKernel 中移除
- 从 composer.json 文件中删除
- 删除了实体 User.php 文件
- 从 config.yml、security.yml、routing.yml 中删除了设置
现在,当我尝试清除生产模式的缓存时,出现以下错误。在开发模式下清除缓存工作正常。
可以告诉我我做错了什么或者我缺少什么来删除 FOS 用户包并能够在生产模式下清除缓存?
PHP Fatal error: Class 'FOS\UserBundle\EventListener\LastLoginListener' not found in /var/www/html/HealthFitness/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/ContainerAwareEventDispatcher.php on line 142
PHP Stack trace:
PHP 1. {main}() /var/www/html/HealthFitness/app/console:0
PHP 2. Symfony\Component\Console\Application->run() /var/www/html/HealthFitness/app/console:27
PHP 3. Symfony\Bundle\FrameworkBundle\Console\Application->doRun() /var/www/html/HealthFitness/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:121
PHP 4. Symfony\Component\DependencyInjection\Container->get() /var/www/html/HealthFitness/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:86
PHP 5. appProdProjectContainer->getEventDispatcherService() /var/www/html/HealthFitness/app/bootstrap.php.cache:2037
PHP 6. Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher->addSubscriberService() /var/www/html/HealthFitness/app/cache/prod/appProdProjectContainer.php:343