Skip to content

Commit

Permalink
Merge pull request #62 from openeuropa/EWPP-1909-1
Browse files Browse the repository at this point in the history
EWPP-1909: Update league/container.
  • Loading branch information
hernani authored Jan 31, 2022
2 parents 999c21c + 36ac09e commit f0317d0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"php": ">=7.4",
"ext-json": "*",
"ext-fileinfo": "*",
"league/container": "^2.1",
"league/container": "^3.3",
"php-http/multipart-stream-builder": "^1.1",
"phpdocumentor/type-resolver": "^0.4 || ^1.4",
"psr/http-client": "^1.0",
Expand Down
16 changes: 8 additions & 8 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,36 +239,36 @@ private function createContainer(
// once during the lifetime of a request, so internals set in a previous
// usage may leak into the later usages.
$container->add('multipartStreamBuilder', MultipartStreamBuilder::class)
->withArgument($streamFactory);
->addArgument($streamFactory);
$container->add('search', SearchEndpoint::class)
->withArguments([
->addArguments([
new RawArgument($this->getConfigValue('searchApiEndpoint')),
'database_config',
]);
$container->add('facet', FacetEndpoint::class)
->withArguments([
->addArguments([
new RawArgument($this->getConfigValue('facetApiEndpoint')),
'database_config',
]);
$container->add('info', InfoEndpoint::class)
->withArgument(new RawArgument($this->getConfigValue('infoApiEndpoint')));
->addArgument(new RawArgument($this->getConfigValue('infoApiEndpoint')));
$container->add('textIngestion', TextIngestionEndpoint::class)
->withArguments([
->addArguments([
new RawArgument($this->getConfigValue('textIngestionApiEndpoint')),
'database_config',
]);
$container->add('fileIngestion', FileIngestionEndpoint::class)
->withArguments([
->addArguments([
new RawArgument($this->getConfigValue('fileIngestionApiEndpoint')),
'database_config',
]);
$container->add('deleteDocument', DeleteEndpoint::class)
->withArguments([
->addArguments([
new RawArgument($this->getConfigValue('deleteApiEndpoint')),
'database_config',
]);
$container->add('token', TokenEndpoint::class)
->withArguments([
->addArguments([
new RawArgument($this->getConfigValue('tokenApiEndpoint')),
'token_config',
]);
Expand Down

0 comments on commit f0317d0

Please sign in to comment.