Skip to content

Commit

Permalink
implement class and annotation scanner as a container config
Browse files Browse the repository at this point in the history
  • Loading branch information
frederikbosch committed May 22, 2024
1 parent 4d90da2 commit 4c18d26
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ContainerConfigClassScanner.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public function define(Container $di): void
foreach ($classmap as $className) {
foreach ($this->injectNamespaces as $namespace) {
if (\str_starts_with($className, $namespace)) {
$di->params[$className] = $resolver->params[$className] ?? [];
$di->params[$className] = $di->params[$className] ?? [];
}
}

Expand Down
2 changes: 1 addition & 1 deletion tests/ContainerConfigClassScannerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ protected function setUp(): void
parent::setUp();

$this->config = new ContainerConfigClassScanner(
[__DIR__ . '/../Fake'],
[__DIR__ . '/Fake'],
['Aura\Di\Fake'],
);
}
Expand Down

0 comments on commit 4c18d26

Please sign in to comment.