N°5122 - Update libs to new PHP requirements

This commit is contained in:
Molkobain
2022-08-08 14:10:26 +02:00
parent 30021d9236
commit 57c36d0e51
585 changed files with 62279 additions and 20427 deletions

View File

@@ -1236,7 +1236,7 @@ class Configuration implements ConfigurationInterface
->info('The status code of the response. Null to let Symfony decide.')
->validate()
->ifTrue(function ($v) { return $v < 100 || $v > 599; })
->thenInvalid('The log level is not valid. Pick a value between 100 and 599.')
->thenInvalid('The status code is not valid. Pick a value between 100 and 599.')
->end()
->defaultNull()
->end()
@@ -1861,7 +1861,7 @@ class Configuration implements ConfigurationInterface
->integerNode('max_delay')->defaultValue(0)->min(0)->info('Max time in ms that a retry should ever be delayed (0 = infinite)')->end()
->floatNode('jitter')->defaultValue(0.1)->min(0)->max(1)->info('Randomness in percent (between 0 and 1) to apply to the delay')->end()
->end()
;
;
}
private function addMailerSection(ArrayNodeDefinition $rootNode, callable $enableIfStandalone)

View File

@@ -669,6 +669,10 @@ class FrameworkExtension extends Extension
}
if ($this->isConfigEnabled($container, $config['form']['csrf_protection'])) {
if (!$container->hasDefinition('security.csrf.token_generator')) {
throw new \LogicException('To use form CSRF protection, "framework.csrf_protection" must be enabled.');
}
$loader->load('form_csrf.php');
$container->setParameter('form.type_extension.csrf.enabled', true);
@@ -917,7 +921,7 @@ class FrameworkExtension extends Extension
if (isset($workflow['marking_store']['type'])) {
$markingStoreDefinition = new ChildDefinition('workflow.marking_store.method');
$markingStoreDefinition->setArguments([
'state_machine' === $type, //single state
'state_machine' === $type, // single state
$workflow['marking_store']['property'],
]);
} elseif (isset($workflow['marking_store']['service'])) {