我正在尝试在osx lion上安装以下项目connect。
cd /tmp
git clone git://github.com/dsyph3r/connect
cd connect
git submodule update --init
php bin/vendors install
当我运行以下命令php bin/vendors install
时,我收到以下消息:
[Symfony\Component\Config\Exception\FileLoaderLoadException]
Cannot import resource "parameters.ini" from "/private/tmp/connect/app/config/config.yml".
为了解决以下错误:
cp app/config/parameters.ini.dist app/config/parameters.ini
然后当我运行以下命令php bin/vendors install
时,我收到以下错误:
PHP Fatal error: Class 'FOS\Rest\Util\Codes' not found in /private/tmp/connect/vendor/bundles/FOS/RestBundle/DependencyInjection/Configuration.php on line 115
Fatal error: Class 'FOS\Rest\Util\Codes' not found in /private/tmp/connect/vendor/bundles/FOS/RestBundle/DependencyInjection/Configuration.php on line 115
PHP Fatal error: Class 'FOS\Rest\Util\Codes' not found in /private/tmp/connect/vendor/bundles/FOS/RestBundle/DependencyInjection/Configuration.php on line 115
Fatal error: Class 'FOS\Rest\Util\Codes' not found in /private/tmp/connect/vendor/bundles/FOS/RestBundle/DependencyInjection/Configuration.php on line 115
我错过了什么?
我想现在问题出在我的app/config/parameters.ini
怎么会这样?
答案 0 :(得分:1)
fOSRestBundle的deps文件中有一个条目,但FOSRest库没有。 查看FOSRestBundle installation documentation,它显示了deps文件的外观。我想这是7个月前的一个项目,它必须在之后拆分。