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
ServiceNotFoundException: "You have requested a non-existent service "serializer"." at C:\wamp\www\symensay\app\bootstrap.php.cache line 1967 {"exception":"[object](Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You have requested a non-existent service "serializer". at C:\wamp\www\symensay\app\bootstrap.php.cache:1967)
Install the component as indicated in the documentation!
in the controller i have:
...
use JMS\SerializerBundle\Serializer\Serializer;
...
Because I'm getting the following error:
ServiceNotFoundException: "You have requested a non-existent service "serializer"." at C:\wamp\www\symensay\app\bootstrap.php.cache line 1967 {"exception":"[object](Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You have requested a non-existent service "serializer". at C:\wamp\www\symensay\app\bootstrap.php.cache:1967)
Install the component as indicated in the documentation!
in the controller i have:
...
use JMS\SerializerBundle\Serializer\Serializer;
...
$usuarios = $query->getResult();
$serializer = $this->container->get('serializer');
$entityserializer= $serializer->serialize($usuarios, 'json');
Thank!
The text was updated successfully, but these errors were encountered: