- Add DISCOVERY_LOG_LEVEL=debug - Add DISCOVERY_SHOW_PROGRESS=true - Temporary changes for debugging InitializerProcessor fixes on production
33 lines
832 B
PHP
33 lines
832 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Framework\View\Exceptions;
|
|
|
|
use App\Framework\Exception\ExceptionContext;
|
|
use App\Framework\Exception\FrameworkException;
|
|
|
|
final class TemplateNotFoundException extends FrameworkException
|
|
{
|
|
public function __construct(
|
|
string $template,
|
|
string $file,
|
|
int $code = 0,
|
|
?\Throwable $previous = null
|
|
) {
|
|
parent::__construct(
|
|
message: "Template \"$template\" nicht gefunden ($file).",
|
|
context: new ExceptionContext(
|
|
operation: 'template_render',
|
|
component: 'view_engine',
|
|
data: [
|
|
'template' => $template,
|
|
'file' => $file,
|
|
]
|
|
),
|
|
code: $code,
|
|
previous: $previous
|
|
);
|
|
}
|
|
}
|