v0

\Hubleto\Framework\Interfaces\RendererInterface

Methods

ƒ init

public init(): void

ƒ getTwig

public getTwig(): \Twig\Environment

ƒ addNamespace

public addNamespace(string $folder, string $namespace): mixed

Parameters

Parameter Type Description
$folder string
$namespace string

ƒ renderView

public renderView(string $view, array $vars = []): string

Parameters

Parameter Type Description
$view string
$vars array

ƒ render

public render(string $route = '', array $params = []): string

Parameters

Parameter Type Description
$route string
$params array

ƒ renderSuccess

public renderSuccess(mixed $return): string

Parameters

Parameter Type Description
$return mixed

ƒ renderWarning

public renderWarning(\Hubleto\Framework\Exceptions\Exception $exception, mixed $isHtml = true): string

Parameters

Parameter Type Description
$exception \Hubleto\Framework\Exceptions\Exception
$isHtml mixed

ƒ renderFatal

public renderFatal(\Hubleto\Framework\Exceptions\Exception $exception, mixed $isHtml = true): string

Parameters

Parameter Type Description
$exception \Hubleto\Framework\Exceptions\Exception
$isHtml mixed

ƒ renderHtmlFatal

public renderHtmlFatal(\Hubleto\Framework\Exceptions\Exception $exception): string

Parameters

Parameter Type Description
$exception \Hubleto\Framework\Exceptions\Exception

ƒ renderExceptionHtml

public renderExceptionHtml(mixed $exception, array $args = []): string

Parameters

Parameter Type Description
$exception mixed
$args array

ƒ renderHtmlWarning

public renderHtmlWarning(\Hubleto\Framework\Exceptions\Exception $exception): string

Parameters

Parameter Type Description
$exception \Hubleto\Framework\Exceptions\Exception

ƒ onBeforeRender

public onBeforeRender(): void

ƒ onAfterRender

public onAfterRender(): void
www.hubleto.com | Found a bug or missing something? Report an issue via GitHub.