我使用symfony作曲家,我發現,通過運行composer update
安裝或更新任何新捆綁後,它將文件複製到各自的文件夾,但在完成該過程之前拋出一些錯誤。作曲家從來沒有成功完成
Loading composer repositories with package information Updating dependencies - Installing knplabs/knp-components (dev-master 163308e) Cloning 163308ed3442e7e9ec4a45ff912664e366954c82
- Installing knplabs/knp-paginator-bundle (dev-master 0d719a9) Cloning 0d719a9bd6973bde1b10587fc2c85cf04c5e0e9d
Writing lock file Generating autoload files PHP Fatal error: Class 'Symfony\Component\ClassLoader\UniversalClassLoader' not found in E:\workspace\sadi\projects\thook\app\autoload.php on line 6 PHP Stack trace: PHP 1. {main}() E:\workspace\sadi\projects\thook\vendor\sensio\distribution-bu ndle\Sensio\Bundle\DistributionBundle\Resources\bin\build_bootstrap.php:0 PHP 2. require_once() E:\workspace\sadi\projects\thook\vendor\sensio\distribut ion-bundle\Sensio\Bundle\DistributionBundle\Resources\bin\build_bootstrap.php:24
Fatal error: Class 'Symfony\Component\ClassLoader\UniversalClassLoader' not foun d in E:\workspace\sadi\projects\thook\app\autoload.php on line 6
Call Stack: 0.0002 633136 1. {main}() E:\workspace\sadi\projects\thook\vendor\sens io\distribution-bundle\Sensio\Bundle\DistributionBundle\Resources\bin\build_boot strap.php:0 0.0216 652848 2. require_once('E:\workspace\sadi\projects\thook\app\au toload.php') E:\workspace\sadi\projects\thook\vendor\sensio\distribution-bundle\ Sensio\Bundle\DistributionBundle\Resources\bin\build_bootstrap.php:24
Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap h andling the post-update-cmd event terminated with an exception
[RuntimeException] An error occurred when generating the bootstrap file.
update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-custom-instal lers] [--no-scripts] [-v|--verbose] [-o|--optimize-autoloader] [packages1] ... [ packagesN]
這是爲什麼?
你有哪些版本的symfony標準版?最新的'2.1.6'版本中存在一個錯誤,昨天修復了這個錯誤 –
如果您發佈用於更新Symfony的所有命令,例如:'php composer.phar update symfony/symfony',以及作曲家文件。 – JeanValjean
請用'--no-scripts'運行作曲家。如果它正確執行,問題在於symfony2,它似乎有一些錯誤配置。如果問題依然存在,則作曲家存在問題。請相應地更新您的帖子以進一步調查。 – Sgoettschkes