Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
rorteg committed Feb 22, 2019
1 parent be1607d commit 50a5ace
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/code/Shelf/Framework/App/Console.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,10 @@ public function launch()

if (isset($config['console']['commands'])) {
foreach ($config['console']['commands'] as $command) {
$application->add(
$this->serviceManager->has($command) ? $this->serviceManager->get($command) : new $command
);
$commandInstance = $this->serviceManager->has($command) ?
$this->serviceManager->get($command) : new $command;

$application->add($commandInstance);
}
}

Expand Down

0 comments on commit 50a5ace

Please sign in to comment.