init
This commit is contained in:
commit
203233d2ed
71 changed files with 8213 additions and 0 deletions
25
config/packages/framework.php
Normal file
25
config/packages/framework.php
Normal file
|
@ -0,0 +1,25 @@
|
|||
<?php declare(strict_types=1);
|
||||
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
|
||||
return static function (ContainerConfigurator $containerConfigurator): void {
|
||||
$containerConfigurator->extension(
|
||||
'framework',
|
||||
[
|
||||
'secret' => '%env(APP_SECRET)%',
|
||||
'session' => true,
|
||||
],
|
||||
);
|
||||
|
||||
if ($containerConfigurator->env() === 'test') {
|
||||
$containerConfigurator->extension(
|
||||
'framework',
|
||||
[
|
||||
'test' => true,
|
||||
'session' => [
|
||||
'storage_factory_id' => 'session.storage.factory.mock_file',
|
||||
],
|
||||
],
|
||||
);
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue