【发布时间】:2023-03-13 15:54:01
【问题描述】:
Symfony 2.4
当我运行composer install 时,我看到这样的错误:
Generating autoload files
Fatal error: Class 'Doctrine\ORM\Tools\Console\Command\ClearCache\CollectionRegionCommand' not found in /Users/vpx/www/vendor/doctrine/doctrine-bundle/Doctrine/Bundle/DoctrineBundle/Command/Proxy/CollectionRegionDoctrineCommand.php on line 29
Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache handling the post-install-cmd event terminated with an exception
[RuntimeException]
An error occurred when executing the "'cache:clear --no-warmup'" command.
在 composer.json 从"doctrine/orm": "~2.2,>=2.2.3" 更改为"doctrine/orm": "~2.2.3" 之后就可以了。这是为什么呢?
【问题讨论】:
标签: php symfony doctrine-orm composer-php