我安裝了EkinoWordpressBundle,後來刪除它,因爲我相信我不再需要它。作曲家依賴被刪除後被調用,強制緩存清除和新鮮結帳
當我進入我的應用程序,我得到這個錯誤:
Symfony\Component\Debug\Exception\ClassNotFoundException: Attempted to load class "WordpressResponseSubscriber" from namespace "Ekino\WordpressBundle\Event\Subscriber". Did you forget a "use" statement for another namespace? in /private/var/www/cache/prod/classes.php on line 1950
當我刪除classes.php
手動然後我得到這個錯誤:
Symfony\Component\Debug\Exception\ClassNotFoundException: Attempted to load class "WordpressResponseSubscriber" from namespace "Ekino\WordpressBundle\Event\Subscriber". Did you forget a "use" statement for another namespace? in /Library/WebServer/Documents/crmpicco/symfony/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/ContainerAwareEventDispatcher.php on line 152
我有一個WordPress的應用程序和Symfony的應用坐在一起彼此,這是工作,直到我開始刪除提及EkinoWordpressBundle。有些背景參見my other question。
爲什麼這個WordpressResponseSubscriber
被我的應用程序首先與作曲家刪除它,然後用新的結帳被引用?
'grep -R'WordpressResponseSubscriber''可能有用 – Devon
@crmpicco你能分享你的作曲家文件嗎?或者至少有你的依賴的部分? – PhiloEpisteme
@PhiloEpisteme當然,這裏是https://gist.github.com/crmpicco/a6cc64c4cae9384d51ff38d5738a4a09 – crmpicco