Skip to content

Commit

Permalink
Update to php-di v6 (#19)
Browse files Browse the repository at this point in the history
- Include code change to satisfy DI\object() removal
  • Loading branch information
ChrisSimmons authored Oct 4, 2021
1 parent 3f3d353 commit 309dd5c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
},
"require": {
"php": ">=7.0",
"php-di/php-di": "^5.4"
"php-di/php-di": "^6.0"
},
"require-dev" : {
"phine/phar": "~1.0",
Expand Down
2 changes: 1 addition & 1 deletion src/GettyImages_Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ private function __construct($apiKey, $apiSecret, $username = null, $password =
{
$builder = new \DI\ContainerBuilder();
$this->container = $builder->build();
$this->container->set('ICurler', \DI\Object(Curler\Curler::Class));
$this->container->set('ICurler', \DI\create(Curler\Curler::Class));
}
else
{
Expand Down

0 comments on commit 309dd5c

Please sign in to comment.