Skip to content

Commit

Permalink
Improved performance by over 5% for resolving not set services.
Browse files Browse the repository at this point in the history
  • Loading branch information
renakdup committed Dec 1, 2023
1 parent d2fd778 commit 1d2ddd9
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/Container.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,6 @@ protected function resolve_object( string $service ): object {
$constructor_args = [];
foreach ( $params as $param ) {
if ( $param_class = $param->getClass() ) {
if ( $this->has( $param_class->getName() ) ) {
$constructor_args[] = $this->get( $param_class->getName() );
continue;
}

$constructor_args[] = $this->get( $param_class->getName() );
continue;
}
Expand Down

0 comments on commit 1d2ddd9

Please sign in to comment.