futtern/config/packages/validator.php
lubiana 7663f684a4
All checks were successful
/ ls (pull_request) Successful in 29s
/ ls (push) Successful in 29s
lint
2024-06-10 20:23:36 +02:00

16 lines
515 B
PHP

<?php declare(strict_types=1);
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
return static function (ContainerConfigurator $containerConfigurator): void {
$containerConfigurator->extension('framework', [
'validation' => null,
]);
if ($containerConfigurator->env() === 'test') {
$containerConfigurator->extension('framework', [
'validation' => [
'not_compromised_password' => false,
],
]);
}
};