I am trying to install vendors for 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
When I run the following command php bin/vendors install
I get the following messages:
[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
What did I miss?
You need to pass the kernel to the bundle's constructor:
$bundles = array(
//...
new JMS\SerializerBundle\JMSSerializerBundle($this),
//...
);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With