collection-crud/config/packages/framework.php

16 lines
428 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 {
2023-07-21 10:35:15 -04:00
$config->session(['handler_id' => NULL]);
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
};