ikucheriavenko
8/22/2017 - 8:37 AM

Common description!

Common description!

codersource


fos_rest:
    body_converter:
        enabled: true
        validate: true
        validation_errors_argument: validationErrors
    param_fetcher_listener: true
    view:
        view_response_listener: force
        formats:
            json: true
    serializer:
        version:              null
        groups:               []
        serialize_null:       true
    exception:
        enabled: true
    format_listener:
        rules:
            - { path: ^/api, priorities: [ json ], fallback_format: json, prefer_extension: false }
            - { path: '^/', priorities: [ 'html', '*/*'], fallback_format: html, prefer_extension: true }
            
    
    # config: http://symfony.com/doc/master/bundles/FOSRestBundle/configuration-reference.html

    # body_listener: http://symfony.com/doc/master/bundles/FOSRestBundle/3-listener-support.html#body-listener

    # view_response_listener: http://symfony.com/doc/master/bundles/FOSRestBundle/view_response_listener.html

    # body_converter: https://symfony.com/doc/master/bundles/FOSRestBundle/request_body_converter_listener.html
    
    # param_fetcher: http://symfony.com/doc/master/bundles/FOSRestBundle/3-listener-support.html#param-fetcher-listener