We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0cfe2ce + 9967a38 commit f2baa28Copy full SHA for f2baa28
config/container.php
@@ -27,7 +27,8 @@
27
$scanDirs = $configFromProviders['scan']['paths'];
28
$scanDirs = array_merge($scanDirs, $annotations['scan']['paths'] ?? []);
29
30
-$container = new Container(new DefinitionSource($serverDependencies, $scanDirs, new Scanner()));
+$ignoreAnnotations = $annotations['scan']['ignore_annotations'] ?? ['mixin'];
31
+$container = new Container(new DefinitionSource($serverDependencies, $scanDirs, new Scanner($ignoreAnnotations)));
32
33
if (! $container instanceof \Psr\Container\ContainerInterface) {
34
throw new RuntimeException('The dependency injection container is invalid.');
0 commit comments