我嘗試安裝FixturesBundle,如http://symfony.com/doc/2.0/bundles/DoctrineFixturesBundle/index.html中所述,但我的代理不會讓我出去。如何從Zip文件安裝Symfony 2.0 Bundle
所以我去了https://github.com/doctrine/data-fixtures並從最新的提交下載一個zip。
我解壓縮到供應商目錄並將其重命名爲學說固定。我按照教程中的描述編輯了autoload.php和AppKernel.php文件。
當我運行:
php app\console doctrine:fixtures:load
我得到以下信息:
PHP Fatal error: Class 'Symfony\Bundle\DoctrineFixturesBundle\DoctrineFixturesB
undle' not found in C:\NetbeansProjects\route_rest_service\app\AppKernel.php on
line 20
Fatal error: Class 'Symfony\Bundle\DoctrineFixturesBundle\DoctrineFixturesBundle
' not found in C:\NetbeansProjects\route_rest_service\app\AppKernel.php on line
20
是否有一種方式來運行包將其指向一個zip文件的安裝?
I'm在Windows 7
謝謝菲利克斯。在閱讀https://github.com/doctrine/DoctrineFixturesBundle/blob/master/Resources/doc/index.rst後,我意識到我沒有下載DoctrineFixturesBundle。我將它作爲zip下載並解壓縮到vendor \ bundles \ Doctrine \ Bundle \ DoctrineFixturesBundle中。它仍然無法找到'Doctrine \ Bundle \ DoctrineFixturesBundle \ DoctrineFixtures Bundle' – 2012-01-11 20:27:35