致命错误:找不到类"FOS \ Rest \ Util \ Codes" [英] Fatal error: Class 'FOS\Rest\Util\Codes' not found

查看:108
本文介绍了致命错误:找不到类"FOS \ Rest \ Util \ Codes"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在osx狮子上安装以下项目 connect .

I am trying to install the following project connect on osx lion.

cd /tmp
git clone git://github.com/dsyph3r/connect
cd connect
git submodule update --init

php bin/vendors install

当我运行以下命令php bin/vendors install时,我收到以下消息:

When I run the following command php bin/vendors install I get the following messages:

[Symfony\Component\Config\Exception\FileLoaderLoadException]                                
Cannot import resource "parameters.ini" from "/private/tmp/connect/app/config/config.yml".

为了解决以下错误,我做了:

In order to fix the following error I did:

     cp app/config/parameters.ini.dist app/config/parameters.ini

然后,当我运行以下命令php bin/vendors install时,出现以下错误:

Then when I run the following command php bin/vendors install I get the following error:

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中.
应该怎么办?

I suppose now the problem is in my app/config/parameters.ini.
How should it be?

推荐答案

在deps文件中有FOSRestBundle的条目,而FOSRest库则没有. 查看 FOSRestBundle安装文档,它显示了deps文件应如何显示.我猜这是7个月前的一个项目,之后肯定已经分裂了.

There is an entry in the deps file for the FOSRestBundle, but not for the FOSRest library. Look at the FOSRestBundle installation documentation, it shows how the deps file should look like. I guess this was one project 7 months ago, and it must have split after.

这篇关于致命错误:找不到类"FOS \ Rest \ Util \ Codes"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆