在学习Symfony2时,我找不到任何可以告诉我如何安装理论扩展库的资源。我知道我应该加上
new Stof\DoctrineExtensionsBundle\StofDoctrineExtensionsBundle(),我的AppKernel.php,但作曲家呢?我安装时总是使用它。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发布于 2014-08-24 12:12:05
如果您想使用这个包,应该通过composer安装"stof/doctrine-extensions-bundle": "1.1.0"。
gedmo/doctrine-extensions是PHP库,而不是symfony包。
当您想知道要安装什么,搜索lib或bundle时,只需使用packagist.org
https://packagist.org/search/?q=StofDoctrineExtensionsBundle
https://stackoverflow.com/questions/25471364
复制相似问题