You are here

public function CommandBase::__construct in Apigee Edge 8

Constructor with cli service injection.

Parameters

\Drupal\apigee_edge\CliServiceInterface $cli_service: The cli service to delegate all actions to.

\Drupal\Core\Logger\LogMessageParserInterface $log_message_parser: The parser to use when extracting message variables.

\Drupal\Core\Logger\LoggerChannelFactoryInterface $logger_channel_factory: The logger channel factory.

File

src/Command/CommandBase.php, line 78

Class

CommandBase
Class CommandBase for shared functionality.

Namespace

Drupal\apigee_edge\Command

Code

public function __construct(CliServiceInterface $cli_service, LogMessageParserInterface $log_message_parser, LoggerChannelFactoryInterface $logger_channel_factory) {
  parent::__construct();
  $this->cliService = $cli_service;
  $this->logMessageParser = $log_message_parser;
  $this->loggerChannelFactory = $logger_channel_factory;
}