Bolt\Response\BoltResponse::__construct PHP Method

__construct() public method

Constructor.
public __construct ( Twig_Template $template, array $context = [], array $globals = [], integer $status = 200, array $headers = [] )
$template Twig_Template An object that is able to render a template with context
$context array An array of context variables
$globals array An array of global context variables
$status integer The response status code
$headers array An array of response headers
    public function __construct(Template $template, array $context = [], array $globals = [], $status = 200, $headers = [])
    {
        parent::__construct(null, $status, $headers);
        $this->template = $template;
        $this->context = $context;
        $this->addGlobals($globals);
    }