for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Conia\Boiler;
/** @psalm-api */
class LayoutContext extends TemplateContext
{
protected Layout $layout;
/** @psalm-param list<class-string> $whitelist */
public function __construct(
Layout $template,
array $context,
array $whitelist,
bool $autoescape,
) {
parent::__construct($template, $context, $whitelist, $autoescape);
$this->layout = $template;
}
public function body(): string
return $this->layout->body();