在学习Symfony2时,我找不到任何可以告诉我如何安装学说扩展库的资源。我知道我应该加上
new Stof'DoctrineExtensionsBundle'StofDoctrineExtensionsBundle(),
到我的AppKernel.php,但是composer呢?我总是在安装时使用它。DoctrineFixtures,但我不知道我到底需要在这种情况下添加什么。我试着
"gedmo/doctrine-extensions" : "master-dev",
但是php composer.phar update
返回php FatalError:
PHP Fatal error: Class 'Stof'DoctrineExtensionsBundle'StofDoctrineExtensionsBundle' not found in /path/to/my/symfony/project/app/AppKernel.php on line 20
Script Sensio'Bundle'DistributionBundle'Composer'ScriptHandler::clearCache handling the post-update-cmd event terminated with an exception
如果你想使用这个包,你应该通过composer安装"stof/doctrine-extensions-bundle": "1.1.0"
。
gedmo/doctrine-extensions
是PHP库,不是symfony bundle
当你想知道安装什么,搜索lib或bundle时,只需使用packagist.org
https://packagist.org/search/?q=StofDoctrineExtensionsBundle