You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
new JMS\SerializerBundle\JMSSerializerBundle($this)
instead of
new JMS\SerializerBundle\JMSSerializerBundle()
because I get the following error:
ContextErrorException: Catchable Fatal Error: Argument 1 passed to JMS\SerializerBundle\JMSSerializerBundle::__construct() must implement interface Symfony\Component\HttpKernel\KernelInterface, none given
The text was updated successfully, but these errors were encountered:
In the documentation at http://jmsyst.com/bundles/JMSSerializerBundle#installation I found that my Symfony 2.3 installation needs in AppKernel.php
new JMS\SerializerBundle\JMSSerializerBundle($this)
instead of
new JMS\SerializerBundle\JMSSerializerBundle()
because I get the following error:
ContextErrorException: Catchable Fatal Error: Argument 1 passed to JMS\SerializerBundle\JMSSerializerBundle::__construct() must implement interface Symfony\Component\HttpKernel\KernelInterface, none given
The text was updated successfully, but these errors were encountered: