mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-14 11:27:00 +00:00
Fix tests
This commit is contained in:
@@ -24,11 +24,17 @@ class Kernel extends BaseKernel
|
|||||||
|
|
||||||
protected function configureContainer(ContainerBuilder $c, LoaderInterface $loader): void
|
protected function configureContainer(ContainerBuilder $c, LoaderInterface $loader): void
|
||||||
{
|
{
|
||||||
$c->loadFromExtension('framework', [
|
$config = [
|
||||||
'secret' => 'S3CRET',
|
'secret' => 'S3CRET',
|
||||||
'test' => true,
|
'test' => true,
|
||||||
]);
|
'router' => ['utf8' => true],
|
||||||
|
'http_method_override' => false,
|
||||||
|
];
|
||||||
|
if (Kernel::MAJOR_VERSION >= 6 && Kernel::MINOR_VERSION >= 2) {
|
||||||
|
$config['handle_all_throwables'] = true;
|
||||||
|
$config['php_errors']['log'] = true;
|
||||||
|
}
|
||||||
|
$c->loadFromExtension('framework', $config);
|
||||||
$c->loadFromExtension('twig', [
|
$c->loadFromExtension('twig', [
|
||||||
'default_path' => __DIR__.'/views',
|
'default_path' => __DIR__.'/views',
|
||||||
]);
|
]);
|
||||||
|
|||||||
Reference in New Issue
Block a user