PHP Class Coduo\TuTu\Response\Builder

Datei anzeigen Open project: coduo/tutu

Public Methods

Method Description
__construct ( Twig_Environment $twig, Parser $requestParser )
build ( Element $config, Request $request ) : Response
buildForException ( Exception $exception ) : Response
buildForMismatch ( Request $request ) : Response

Method Details

__construct() public method

public __construct ( Twig_Environment $twig, Parser $requestParser )
$twig Twig_Environment
$requestParser Coduo\TuTu\Request\Path\Parser

build() public method

public build ( Element $config, Request $request ) : Response
$config Coduo\TuTu\Config\Element
$request Symfony\Component\HttpFoundation\Request
return Symfony\Component\HttpFoundation\Response

buildForException() public method

public buildForException ( Exception $exception ) : Response
$exception Exception
return Symfony\Component\HttpFoundation\Response

buildForMismatch() public method

public buildForMismatch ( Request $request ) : Response
$request Symfony\Component\HttpFoundation\Request
return Symfony\Component\HttpFoundation\Response