2011-09-23 76 views
0

我想將MagentoBundle加入到我的Symfony2應用程序中。安裝和根據自述配置束後我收到以下錯誤消息:Symfony2自動加載問題

Fatal error: Class 'Liip\MagentoBundle\SessionStorage\MagentoSessionStorage' not found in .../app/cache/dev/appDevDebugProjectContainer.php on line 1447

是,束被添加到自動加載器和到appkernel。但是我不太確定接下來要看的東西,因爲我是Symfony2的新手,並且看起來相應地安裝了所有東西。

任何幫助或想法將不勝感激:)。

+1

你能告訴我們相關的代碼從自動加載機和AppKernel? – Problematic

+0

我發佈了代碼github:https://github.com/liip/LiipMagentoBundle/issues/2#issuecomment-2186472 –

+0

清除緩存並重試;) – madflow

回答

0

一定要有這在DEPS文件

[LiipMagentoBundle] 
git=http://github.com/liip/LiipMagentoBundle.git 
target=/bundles/Liip/MagentoBundle 

然後,手動刪除緩存

rm -rf app/cache/* 

設置正確:

sudo setfacl -R -m u:www-data:rwx -m u:`whoami`:rwx app/cache app/logs 
sudo setfacl -dR -m u:www-data:rwx -m u:`whoami`:rwx app/cache app/logs 

,並重新安裝廠商

php bin/vendors install --reinstall 

如果它仍然失敗使用debuger,看看發生了什麼它自動加載器