From 471fabe350f266f1641cd04e47ea8803e447a8e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= Date: Tue, 20 Jan 2026 14:36:30 +0100 Subject: [PATCH 1/2] Added `strict_mode` to configuration --- src/bundle/Core/DependencyInjection/Configuration.php | 9 +++++++++ .../Core/DependencyInjection/IbexaCoreExtension.php | 4 ++++ 2 files changed, 13 insertions(+) diff --git a/src/bundle/Core/DependencyInjection/Configuration.php b/src/bundle/Core/DependencyInjection/Configuration.php index 18f2c8823a..8595eca52f 100644 --- a/src/bundle/Core/DependencyInjection/Configuration.php +++ b/src/bundle/Core/DependencyInjection/Configuration.php @@ -48,6 +48,15 @@ public function getConfigTreeBuilder(): TreeBuilder $rootNode = $treeBuilder->getRootNode(); + $rootNode + ->children() + ->booleanNode('strict_mode') + ->info('Enable strict mode. If enabled, certain misconfiguration issues that allowed fallback will throw an exception.') + ->defaultValue('%kernel.debug%') + ->end() + ->end() + ; + $this->addRepositoriesSection($rootNode); $this->addSiteAccessSection($rootNode); $this->addImageMagickSection($rootNode); diff --git a/src/bundle/Core/DependencyInjection/IbexaCoreExtension.php b/src/bundle/Core/DependencyInjection/IbexaCoreExtension.php index bef09cc94d..e4459020e0 100644 --- a/src/bundle/Core/DependencyInjection/IbexaCoreExtension.php +++ b/src/bundle/Core/DependencyInjection/IbexaCoreExtension.php @@ -118,6 +118,10 @@ public function load(array $configs, ContainerBuilder $container): void // Note: this is where the transformation occurs $config = $this->processConfiguration($configuration, $configs); + if ($config['strict_mode']) { + $container->setParameter('ibexa.strict_mode', $config['strict_mode']); + } + // Base services and services overrides $loader->load('services.yml'); // Security services From 78c86c598057652c85d2977dd9a3ff7db4eb920c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= Date: Tue, 20 Jan 2026 14:40:14 +0100 Subject: [PATCH 2/2] Added `strict_mode` to configuration --- src/bundle/Core/DependencyInjection/IbexaCoreExtension.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/bundle/Core/DependencyInjection/IbexaCoreExtension.php b/src/bundle/Core/DependencyInjection/IbexaCoreExtension.php index e4459020e0..aa93c6b717 100644 --- a/src/bundle/Core/DependencyInjection/IbexaCoreExtension.php +++ b/src/bundle/Core/DependencyInjection/IbexaCoreExtension.php @@ -118,9 +118,7 @@ public function load(array $configs, ContainerBuilder $container): void // Note: this is where the transformation occurs $config = $this->processConfiguration($configuration, $configs); - if ($config['strict_mode']) { - $container->setParameter('ibexa.strict_mode', $config['strict_mode']); - } + $container->setParameter('ibexa.strict_mode', $config['strict_mode'] ?? false); // Base services and services overrides $loader->load('services.yml');