Skip to content

Commit 03b649b

Browse files
committed
📦 Avoid failed assert in case of not specified namespace config
Application can register graphql types on their own via compiler passes
1 parent d3dc4c8 commit 03b649b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/DependencyInjection/GraphQLiteExtension.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ public function load(array $configs, ContainerBuilder $container): void
3636

3737
$loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config/container'));
3838

39+
if (!isset($config['namespace'])) {
40+
$config['namespace'] = [];
41+
}
3942
\assert(\is_array($config['namespace']));
4043
if (isset($config['namespace']['controllers'])) {
4144
$controllers = $config['namespace']['controllers'];

0 commit comments

Comments
 (0)