Skip to content

Commit fa38155

Browse files
committed
Fixed issue that prevented service providers from registering if a previous one in the aggregate was already registered.
1 parent a6c52d7 commit fa38155

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
All Notable changes to `League\Container` will be documented in this file
44

5+
## 3.2.2
6+
7+
### Fixed
8+
- Fixed issue that prevented service providers from registering if a previous one in the aggregate was already registered.
9+
510
## 3.2.1
611

712
### Fixed

src/ServiceProvider/ServiceProviderAggregate.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public function register(string $service)
9090

9191
foreach ($this->getIterator() as $provider) {
9292
if (in_array($provider->getIdentifier(), $this->registered)) {
93-
return;
93+
continue;
9494
}
9595

9696
if ($provider->provides($service)) {

0 commit comments

Comments
 (0)