collection-crud/config/packages/framework.php

26 lines
585 B
PHP
Raw Normal View History

2022-11-03 10:44:05 -04:00
<?php
declare(strict_types=1);
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
2023-07-21 10:35:15 -04:00
use Symfony\Config\FrameworkConfig;
2022-11-03 10:44:05 -04:00
2022-11-17 15:32:57 -05:00
return static function (ContainerConfigurator $containerConfigurator, FrameworkConfig $config): void {
$config->handleAllThrowables(true);
$config->annotations([
'enabled' => FALSE
]);
$config->session([
'handler_id' => NULL,
'cookie_secure' => 'auto',
'cookie_samesite' => 'strict',
]);
2022-11-17 15:32:57 -05:00
$config->secret('%env(APP_SECRET)%')
->defaultLocale('en')
2023-07-21 10:35:15 -04:00
->httpMethodOverride(TRUE)
->phpErrors(['log' => TRUE]);
2022-11-03 10:44:05 -04:00
};