Integrations / Frameworks / Symfony / Troubleshooting

No serializer service found

If you aren’t using the symfony/framework-bundle or the symfony/serializer component you may not have any service called serializer. The serializer component is a requirement to this bundle but the configuration is part of the framework-bundle.

You can enable the serializer in your app/config/services.yml file:

1
2
framework:
  serializer: { enabled: true }

It’s recommended to let the framework-bundle register it rather than doing your own configuration, unless you know what you’re doing.

The group annotation was not taken into account

Make sure the serializer annotation is enabled in your configuration. You can enable it in your app/config/services.yml file:

1
2
framework:
  serializer: { enabled: true, enable_annotations: true }

Algolia Doctor

You can also take advantage of the algolia-doctor command. It will check your environment and configuration and display useful information, like missing libraries or php.ini settings.

1
php vendor/bin/algolia-doctor
Did you find this page helpful?