[英]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.