Skip to content

Commit

Permalink
Remove CliApp dependency in constructor of AbstractCommand, infle…
Browse files Browse the repository at this point in the history
…ctor used instead
  • Loading branch information
ElGigi committed Jul 7, 2021
1 parent b7b0825 commit 9a0eba1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ use [Keep a Changelog] (http://keepachangelog.com/).

- Declare `CliApp` inflector to the service container in constructor

### Removed

- Remove `CliApp` dependency in constructor of `AbstractCommand`, inflector used instead

## [2.0.0-beta1] - 2021-06-07

### Added
Expand Down
6 changes: 0 additions & 6 deletions src/Command/AbstractCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

namespace Berlioz\Cli\Core\Command;

use Berlioz\Cli\Core\App\CliApp;
use Berlioz\Cli\Core\App\CliAppAwareInterface;
use Berlioz\Cli\Core\App\CliAppAwareTrait;

Expand All @@ -25,11 +24,6 @@ abstract class AbstractCommand implements CliAppAwareInterface, CommandInterface
{
use CliAppAwareTrait;

public function __construct(CliApp $app)
{
$this->setApp($app);
}

/**
* @inheritDoc
*/
Expand Down

0 comments on commit 9a0eba1

Please sign in to comment.