Skip to content

Commit f2baa28

Browse files
authored
Merge pull request #6 from zcmzc/patch-1
Fixed ignore annotations does not work
2 parents 0cfe2ce + 9967a38 commit f2baa28

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

config/container.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
$scanDirs = $configFromProviders['scan']['paths'];
2828
$scanDirs = array_merge($scanDirs, $annotations['scan']['paths'] ?? []);
2929

30-
$container = new Container(new DefinitionSource($serverDependencies, $scanDirs, new Scanner()));
30+
$ignoreAnnotations = $annotations['scan']['ignore_annotations'] ?? ['mixin'];
31+
$container = new Container(new DefinitionSource($serverDependencies, $scanDirs, new Scanner($ignoreAnnotations)));
3132

3233
if (! $container instanceof \Psr\Container\ContainerInterface) {
3334
throw new RuntimeException('The dependency injection container is invalid.');

0 commit comments

Comments
 (0)