public function NewRelicRpmCommands::__construct in New Relic 2.x
Same name and namespace in other branches
- 8 src/Commands/NewRelicRpmCommands.php \Drupal\new_relic_rpm\Commands\NewRelicRpmCommands::__construct()
- 2.0.x src/Commands/NewRelicRpmCommands.php \Drupal\new_relic_rpm\Commands\NewRelicRpmCommands::__construct()
NewRelicRpmCommands constructor.
Parameters
\Drupal\new_relic_rpm\Client\NewRelicApiClient $api_client: Newrelic API client.
\Drupal\new_relic_rpm\ExtensionAdapter\NewRelicAdapterInterface $adapter: Newrelic adapter.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: Drupal config factory.
File
- src/
Commands/ NewRelicRpmCommands.php, line 46
Class
- NewRelicRpmCommands
- Newrelic rpm drush commands.
Namespace
Drupal\new_relic_rpm\CommandsCode
public function __construct(NewRelicApiClient $api_client, NewRelicAdapterInterface $adapter, ConfigFactoryInterface $config_factory) {
parent::__construct();
$this->apiClient = $api_client;
$this->adapter = $adapter;
$this->configFactory = $config_factory;
}