Skip to content

Commit

Permalink
Merge pull request #243 from SubhanSh/4.x
Browse files Browse the repository at this point in the history
Remove unnecessary 'if' statement
  • Loading branch information
philipobenito authored Mar 13, 2024
2 parents 1609119 + 5caad00 commit 3ca10a7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/ServiceProvider/ServiceProviderAggregate.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ public function add(ServiceProviderInterface $provider): ServiceProviderAggregat
return $this;
}

if ($provider instanceof ContainerAwareInterface) {
$provider->setContainer($this->getContainer());
}
$provider->setContainer($this->getContainer());

if ($provider instanceof BootableServiceProviderInterface) {
$provider->boot();
Expand Down

0 comments on commit 3ca10a7

Please sign in to comment.