Symfony 4 fosrestbundle cant recognize routing_lader configuration as an array, instead expecting a boolean

Symfony 4.4 returns "Invalid type for path "fos_rest.routing_loader". Expected boolean, but got array.", after configuring the fos_rest.yml as it follows:

fos_rest:
  view:
    view_response_listener: 'force'
    formats:
      json: true
  format_listener: true
  param_fetcher_listener: true
  routing_loader:
    default_format: json
  serializer:
    groups: ['default']

This configuration was valid in previous versions of the symfony framework. Please some help here, cant find anythink on documentation.

Source: Symfony4 Questions

Was this helpful?

0 / 0

Leave a Reply 0

Your email address will not be published. Required fields are marked *