ErrorException JMS\SerializerBundle\JMSSerializerBundle

und*_*666 4 macos symfony osx-lion

我正在尝试为osx lion上的以下项目连接安装供应商.

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

php bin/vendors install
Run Code Online (Sandbox Code Playgroud)

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

[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
Run Code Online (Sandbox Code Playgroud)

我错过了什么?

Eln*_*mov 9

您需要将内核传递给bundle的构造函数:

$bundles = array(
    //...
    new JMS\SerializerBundle\JMSSerializerBundle($this),
    //...
);
Run Code Online (Sandbox Code Playgroud)