mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-26 03:58:45 +02:00
N°5122 - Update libs to new PHP requirements
This commit is contained in:
@@ -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'])) {
|
||||
|
||||
Reference in New Issue
Block a user