Ouzo\View\TwigRenderer::__construct PHP Method

__construct() public method

public __construct ( $viewName, array $attributes )
$attributes array
    public function __construct($viewName, array $attributes)
    {
        $this->_viewName = $viewName;
        $this->_attributes = $attributes;
        $this->_loaderPath = Path::join(ROOT_PATH, ApplicationPaths::getViewPath());
        $this->_viewFilename = $viewName . self::EXTENSION;
        $this->_viewPath = Path::join($this->_loaderPath, $this->_viewFilename);
    }