我希望將這個包安裝到我的symfony項目中。但是,我遇到了一些問題。如果答案不重要,請接受我的無知,但我試過尋找解決方案,但唉,我什麼也沒找到。安裝一個symfony2包(DoctrineCouchDBBundle)
在我DEPS文件,我有:
[doctrine-couchdb]
git=http://github.com/doctrine/couchdb-odm.git
[DoctrineCouchDBBundle]
git=http://github.com/doctrine/DoctrineCouchDBBundle.git
target=/bundles/Symfony/Bundle/DoctrineCouchDBBundle
我運行斌/廠商安裝命令
在我autoload.php文件我有:
'Doctrine\\ODM\\CouchDB'=> __DIR__.'/../vendor/doctrine-couchdb/lib',
我已註冊該軟件包:
new Doctrine\Bundle\CouchDBBundle\DoctrineCouchDBBundle()
當我運行PHP應用程序/控制檯我得到的錯誤:
Fatal error: Class 'Doctrine\Bundle\CouchDBBundle\DoctrineCouchDBBundle' not found in /var/www/symfony2.test/app/AppKernel.php on line 22
我注意到,MongoDB的ODM您有:
[doctrine-mongodb]
git=http://github.com/doctrine/mongodb.git
是不是有一個doctrine- couchdb回購?你用過這個包嗎?
試過這個建議,但它並沒有:-( – Flukey
可能是一個愚蠢的問題也工作,但你有沒有其他地方像學說\捆綁和學說\ CouchDB的自動加載 – Inoryy
:信息可以從獲得?應該不是'target =/bundles/** Symfony **/Bundle/DoctrineCouchDBBundle'實際上是'target =/bundles/** Doctrine **/Bundle/DoctrineCouchDBBundle'? – Inoryy