public function Base::__construct in DRD Agent 8.3
Same name in this branch
- 8.3 src/Agent/Action/Base.php \Drupal\drd_agent\Agent\Action\Base::__construct()
- 8.3 src/Agent/Remote/Base.php \Drupal\drd_agent\Agent\Remote\Base::__construct()
- 8.3 src/Agent/Auth/Base.php \Drupal\drd_agent\Agent\Auth\Base::__construct()
Same name and namespace in other branches
- 4.0.x src/Agent/Action/Base.php \Drupal\drd_agent\Agent\Action\Base::__construct()
Base constructor.
Parameters
\Symfony\Component\DependencyInjection\ContainerInterface $container:
\Drupal\Core\Session\AccountSwitcherInterface $account_switcher:
\Drupal\Core\Config\ConfigFactoryInterface $config_factory:
\Drupal\Core\Database\Connection $database:
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager:
\Drupal\Core\File\FileSystemInterface $file_system:
\Drupal\Core\Logger\LoggerChannelFactoryInterface $logger_channel_factory:
\Drupal\Core\Messenger\MessengerInterface $messenger:
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler:
\Drupal\Core\State\StateInterface $state:
\Drupal\Component\Datetime\Time $time:
File
- src/
Agent/ Action/ Base.php, line 115
Class
- Base
- Base class for Remote DRD Action Code.
Namespace
Drupal\drd_agent\Agent\ActionCode
public function __construct(ContainerInterface $container, AccountSwitcherInterface $account_switcher, ConfigFactoryInterface $config_factory, Connection $database, EntityTypeManagerInterface $entity_type_manager, FileSystemInterface $file_system, LoggerChannelFactoryInterface $logger_channel_factory, MessengerInterface $messenger, ModuleHandlerInterface $module_handler, StateInterface $state, Time $time) {
$this->accountSwitcher = $account_switcher;
$this->configFactory = $config_factory;
$this->container = $container;
$this->database = $database;
$this->entityTypeManager = $entity_type_manager;
$this->fileSystem = $file_system;
$this->logger = $logger_channel_factory
->get('DRD Agent');
$this->messenger = $messenger;
$this->moduleHandler = $module_handler;
$this->state = $state;
$this->time = $time;
}