protected function decorateResponseFactory(ResponseFactoryContract $factory): ResponseFactory
    {
        foreach ($this->app->config['responder.decorators'] as $decorator) {
            $factory = new $decorator($factory);
        };

        return $factory;
    }
protected function decorateResponseFactory(ResponseFactoryContract $factory): ResponseFactory
    {
        foreach ($this->app->config['responder.decorators'] as $decorator) {
            $factory = new $decorator($factory);
        };

        return $factory;
    }
protected function decorateResponseFactory ( ResponseFactoryContract $ factory ) : ResponseFactory { foreach ( $ this -> app -> config [ 'responder.decorators' ] as $ decorator ) { $ factory = new $ decorator ( $ factory ) ; } ; return $ factory ; }
Decorate response factories.

@param  \Flugg\Responder\Contracts\ResponseFactory $factory
@return \Flugg\Responder\Contracts\ResponseFactory
Decorate response factories .