Skip to content

Commit

Permalink
Fix method calls order
Browse files Browse the repository at this point in the history
  • Loading branch information
akadlec committed Jul 7, 2022
1 parent ca52082 commit de0f07e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Commands/ConnectorCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,6 @@ public function __construct(
?Log\LoggerInterface $logger = null,
?string $name = null
) {
parent::__construct($name);

$this->factory = $factory;
$this->connectorsRepository = $connectorsRepository;
$this->connectorPropertiesRepository = $connectorPropertiesRepository;
Expand All @@ -120,6 +118,8 @@ public function __construct(
$this->dispatcher = $dispatcher;

$this->logger = $logger ?? new Log\NullLogger();

parent::__construct($name);
}

/**
Expand Down
4 changes: 2 additions & 2 deletions src/Commands/InitializeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ public function __construct(
?Log\LoggerInterface $logger = null,
?string $name = null
) {
parent::__construct($name);

$this->logger = $logger ?? new Log\NullLogger();

parent::__construct($name);
}

/**
Expand Down

0 comments on commit de0f07e

Please sign in to comment.