protected function appendAllResponse(ResponseInterface $response): ResponseInterface
    {
        if ($this->append) {
            $this->cors->setResponse('psr-7', $response);
            $this->cors->handle();

            return $this->cors->getResponse();
        }

        return $response;
    }
protected function appendAllResponse(ResponseInterface $response): ResponseInterface
    {
        if ($this->append) {
            $this->cors->setResponse('psr-7', $response);
            $this->cors->handle();

            return $this->cors->getResponse();
        }

        return $response;
    }
protected function appendAllResponse ( ResponseInterface $ response ) : ResponseInterface { if ( $ this -> append ) { $ this -> cors -> setResponse ( 'psr-7' , $ response ) ; $ this -> cors -> handle ( ) ; return $ this -> cors -> getResponse ( ) ; } return $ response ; }
Append all response.

@param \Psr\Http\Message\ResponseInterface $response

@return \Psr\Http\Message\ResponseInterface

@author Seven Du <shiweidu@outlook.com>
Append all response .