16 lines
486 B
PHP
16 lines
486 B
PHP
|
<?php
|
||
|
|
||
|
declare(strict_types=1);
|
||
|
|
||
|
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||
|
|
||
|
return static function (ContainerConfigurator $containerConfigurator): void {
|
||
|
if ($containerConfigurator->env() === 'test') {
|
||
|
$containerConfigurator->extension('dama_doctrine_test', [
|
||
|
'enable_static_connection' => true,
|
||
|
'enable_static_meta_data_cache' => true,
|
||
|
'enable_static_query_cache' => true,
|
||
|
]);
|
||
|
}
|
||
|
};
|