Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
409 views
in Technique[技术] by (71.8m points)

How to install a Symfony 2.0 Bundle from Zip file

I tried installing the FixturesBundle as described in http://symfony.com/doc/2.0/bundles/DoctrineFixturesBundle/index.html but my proxy wont let me out.

So I went to https://github.com/doctrine/data-fixtures and download a zip from the latest commit.

I unzipped into the vendor directory and renamed it to doctrine-fixures. I edited the autoload.php and AppKernel.php files as described in the tutorial.

When I run:

php appconsole doctrine:fixtures:load

I get the following message:

PHP Fatal error:  Class 'SymfonyBundleDoctrineFixturesBundleDoctrineFixturesB
undle' not found in C:NetbeansProjects
oute_rest_serviceappAppKernel.php on
line 20

Fatal error: Class 'SymfonyBundleDoctrineFixturesBundleDoctrineFixturesBundle
' not found in C:NetbeansProjects
oute_rest_serviceappAppKernel.php on line
20

Is there a way to run the installation of bundle pointing it to a zip file?

I′m running Symfony 2.0.9 on Windows 7.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Seems like the doctrine bundle has been moved outside of Symfony scope back to Doctrine.

Please, use https://github.com/doctrine/DoctrineFixturesBundle


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...