繁体   English   中英

如何安装教义扩展

[英]How to install doctrine extensions

在学习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

如果要使用该捆绑软件,则应通过composer安装"stof/doctrine-extensions-bundle": "1.1.0"

gedmo/doctrine-extensions是PHP库,而不是symfony捆绑包

如果您想知道要安装什么,请搜索lib或软件包,只需使用packagist.org

https://packagist.org/search/?q=StofDoctrineExtensionsBundle

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM