Skip to content

Commit 28fd65b

Browse files
committed
- change binding logic (only the provided class is mapped)
1 parent 024bd8b commit 28fd65b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

DIContainer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ private function mapDeferred(string $dependency, string $class): void
272272
}
273273
if (false === empty($class)) {
274274
$this->bindings[$interface] = $class;
275+
continue;
275276
}
276277
$this->bindings[$dependency] = $this->bindings[$interface];
277278
break;

0 commit comments

Comments
 (0)