Skip to content

Commit

Permalink
Merge pull request #18 from php-api-clients/wyrihaximus-string-get-in
Browse files Browse the repository at this point in the history
Replace igorw/get-in with wyrihaximus/string-get-in
  • Loading branch information
WyriHaximus committed Oct 14, 2018
2 parents 4799ee0 + 28bef87 commit 90136df
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 10 deletions.
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -12,12 +12,12 @@
"php": "^7.2",
"container-interop/container-interop": "^1.2",
"daverandom/exceptional-json": "^1.0.4",
"igorw/get-in": "^1.0",
"joshdifabio/composed": "^1.0",
"league/tactician": "^1.0",
"league/tactician-container": "^2.0 || ^1.0",
"ocramius/package-versions": "^1.3",
"react/event-loop": "^1.0 || ^0.5 || ^0.4.2",
"wyrihaximus/string-get-in": "^1.0",
"wyrihaximus/tactician-command-handler-mapper": "^2.0.1 || ^1.0",
"wyrihaximus/ticking-promise": "^1.6"
},
Expand Down
42 changes: 41 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 2 additions & 8 deletions src/Factory.php
Expand Up @@ -11,7 +11,7 @@
use React\EventLoop\LoopInterface;
use Traversable;
use function Composed\packages;
use function igorw\get_in;
use function WyriHaximus\getIn;

final class Factory
{
Expand Down Expand Up @@ -55,13 +55,7 @@ private static function resolveDirectories()
continue;
}

$mapping = get_in(
$config,
[
'api-clients',
'command-bus',
]
);
$mapping = getIn($config, 'api-clients.command-bus');

if ($mapping === null) {
continue;
Expand Down

0 comments on commit 90136df

Please sign in to comment.