services:
    PhpList\RestBundle\Controller\:
        resource: '../src/Controller'
        public: true
        autowire: true
        tags: ['controller.service_arguments']

    my.secure_handler:
      class: \PhpList\RestBundle\ViewHandler\SecuredViewHandler

    my.secure_view_handler:
      parent: fos_rest.view_handler.default
      calls:
        - ['registerHandler', [ 'json', ['@my.secure_handler', 'createResponse'] ] ]
