src/web/YamlResponseFormatter.php
/**
     * Formats the specified response.
     *
     * @param Response $response the response to be formatted.
     */
Formats the specified response.
@param Response $response the response to be formatted.
Formats the specified response . @param Response $response the response to be formatted .
public function format($response)
    {
        $response->getHeaders()->set('Content-Type', 'text/yaml; charset=UTF-8');
        if ($response->data !== null) {
            $response->content = Yaml::encode($response->data, $this->dumper, $this->inline, $this->flags);
        }
    }
public function format ( $ response ) { $ response -> getHeaders ( ) -> set ( 'Content-Type' , 'text/yaml; charset=UTF-8' ) ; if ( $ response -> data !== null ) { $ response -> content = Yaml :: encode ( $ response -> data , $ this -> dumper , $ this -> inline , $ this -> flags ) ; } }
Formats the specified response.
Formats the specified response .