Skip to content

Commit e65189c

Browse files
authored
Merge pull request #249 from cvergne/fix/assert-security-config
[Fix] Avoid break on assert if security node is missing in config
2 parents 8da372b + e22df6c commit e65189c

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
@@ -73,6 +73,9 @@ function($namespace): string {
7373
$namespaceType = [];
7474
}
7575

76+
if (!isset($config['security'])) {
77+
$config['security'] = [];
78+
}
7679
\assert(\is_array($config['security']));
7780
$enableLogin = $config['security']['enable_login'] ?? 'auto';
7881
$enableMe = $config['security']['enable_me'] ?? 'auto';

0 commit comments

Comments
 (0)