2012-04-28 2 views
4

osx lionに次のプロジェクトconnectのベンダーをインストールしようとしています。私は何を逃したErrorException JMS¥SerializerBundle¥JMSSerializerBundle

[ErrorException] 

Catchable Fatal Error: 
Argument 1 passed to JMS\SerializerBundle\JMSSerializerBundle::__construct() 
must implement interface Symfony\Component\HttpKernel\KernelInterface, 
none given, called in /Users/antoniopierro/Sites/connect/app/AppKernel.php on line 21 
and defined in /Users/antoniopierro/Sites/connect/vendor/bundles/JMS/SerializerBundle/JMSSerializerBundle.php line 37 

:私は、次のコマンドを実行するとphp bin/vendors install

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

php bin/vendors install 

私は、次のメッセージを取得しますか?

答えて

9

あなたがバンドルのコンストラクタにカーネルを渡す必要があります。

$bundles = array(
    //... 
    new JMS\SerializerBundle\JMSSerializerBundle($this), 
    //... 
); 
+1

私のプル要求を参照してください:https://github.com/dsyph3r/connect/pull/4を1 – greg0ire

+1

このプロジェクトは、7ヶ月です、なぜそれが動作しないのか:JMSSerializerBundleのコードは@ greg0ire @ 012newire、あなたの答えに感謝 – greg0ire

+0

を変更しました。これで動作しますが、 'app/config/parameters.ini'に関連する別の問題があります。次の質問を参照してください:[致命的なエラー:クラス 'FOS \ Rest \ Util \ Codes'が見つかりません](http:// stackoverflow。 com/questions/10370883/fatal-error-class-fos-rest-util-codes-not-found) – underscore666

関連する問題