services:
    bluetea_ajaxresponse.event_listener.ajax_response:
        class: BlueTea\AjaxResponseBundle\EventListener\AjaxResponseListener
        arguments:
            - @session
            - @jms_serializer
        tags:
            - { name: kernel.event_listener, event: kernel.response, method: onKernelResponse }
services:
    bluetea_ajaxresponse.event_listener.ajax_response:
        class: BlueTea\AjaxResponseBundle\EventListener\AjaxResponseListener
        arguments:
            - '@session'
            - '@jms_serializer'
        tags:
            - { name: kernel.event_listener, event: kernel.response, method: onKernelResponse }
Make the bundle compatible with Symfony 3
Make the bundle compatible with Symfony 3
