Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/bundle/Core/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 2 additions & 0 deletions src/bundle/Core/DependencyInjection/IbexaCoreExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ public function load(array $configs, ContainerBuilder $container): void
// Note: this is where the transformation occurs
$config = $this->processConfiguration($configuration, $configs);

$container->setParameter('ibexa.strict_mode', $config['strict_mode'] ?? false);

// Base services and services overrides
$loader->load('services.yml');
// Security services
Expand Down
Loading