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

@@ -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'])) {