Skip to content

Commit

Permalink
Fix dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
tidal committed Jun 30, 2022
1 parent 328b2dd commit 1869d60
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/SDK/Common/Adapter/HttpDiscovery/DependencyResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,19 @@ final class DependencyResolver implements DependencyResolverInterface
private HttpPlugClientResolverInterface $httpPlugClientResolver;

public function __construct(
?MessageFactoryResolverInterface $messageFactoryResolver,
?PsrClientResolverInterface $psrClientResolver,
?HttpPlugClientResolverInterface $httpPlugClientResolver
?MessageFactoryResolverInterface $messageFactoryResolver = null,
?PsrClientResolverInterface $psrClientResolver = null,
?HttpPlugClientResolverInterface $httpPlugClientResolver = null
) {
$this->messageFactoryResolver = $messageFactoryResolver ?? MessageFactoryResolver::create();
$this->psrClientResolver = $psrClientResolver ?? PsrClientResolver::create();
$this->httpPlugClientResolver = $httpPlugClientResolver ?? HttpPlugClientResolver::create();
}

public static function create(
?MessageFactoryResolverInterface $messageFactoryResolver,
?PsrClientResolverInterface $psrClientResolver,
?HttpPlugClientResolverInterface $httpPlugClientResolver
?MessageFactoryResolverInterface $messageFactoryResolver = null,
?PsrClientResolverInterface $psrClientResolver = null,
?HttpPlugClientResolverInterface $httpPlugClientResolver = null
): self {
return new self($messageFactoryResolver, $psrClientResolver, $httpPlugClientResolver);
}
Expand Down

0 comments on commit 1869d60

Please sign in to comment.