2024-02-05 15:16:43 +00:00
|
|
|
<?php declare(strict_types=1);
|
|
|
|
|
|
|
|
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
|
|
|
|
|
|
|
return static function (ContainerConfigurator $containerConfigurator): void {
|
2024-06-09 14:43:34 +00:00
|
|
|
$containerConfigurator->extension('framework', [
|
|
|
|
'secret' => '%env(APP_SECRET)%',
|
|
|
|
'session' => true,
|
|
|
|
]);
|
2024-02-05 15:16:43 +00:00
|
|
|
if ($containerConfigurator->env() === 'test') {
|
2024-06-09 14:43:34 +00:00
|
|
|
$containerConfigurator->extension('framework', [
|
|
|
|
'test' => true,
|
|
|
|
'session' => [
|
|
|
|
'storage_factory_id' => 'session.storage.factory.mock_file',
|
2024-02-05 15:16:43 +00:00
|
|
|
],
|
2024-06-09 14:43:34 +00:00
|
|
|
]);
|
2024-02-05 15:16:43 +00:00
|
|
|
}
|
|
|
|
};
|