You are here

public function Base::__construct in DRD Agent 8.3

Same name in this branch
  1. 8.3 src/Agent/Action/Base.php \Drupal\drd_agent\Agent\Action\Base::__construct()
  2. 8.3 src/Agent/Remote/Base.php \Drupal\drd_agent\Agent\Remote\Base::__construct()
  3. 8.3 src/Agent/Auth/Base.php \Drupal\drd_agent\Agent\Auth\Base::__construct()
Same name and namespace in other branches
  1. 4.0.x src/Agent/Remote/Base.php \Drupal\drd_agent\Agent\Remote\Base::__construct()

Base constructor.

Parameters

\Symfony\Component\DependencyInjection\ContainerInterface $container:

\Drupal\Core\Session\AccountSwitcherInterface $accountSwitcher:

\Drupal\Core\Config\ConfigFactoryInterface $configFactory:

\Drupal\Core\Database\Connection $database:

\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager:

\Drupal\Core\Extension\ModuleHandlerInterface $moduleHandler:

\Drupal\Component\Datetime\Time $time:

File

src/Agent/Remote/Base.php, line 65

Class

Base
Base class for Remote DRD Remote Methods.

Namespace

Drupal\drd_agent\Agent\Remote

Code

public function __construct(ContainerInterface $container, AccountSwitcherInterface $accountSwitcher, ConfigFactoryInterface $configFactory, Connection $database, EntityTypeManagerInterface $entityTypeManager, ModuleHandlerInterface $moduleHandler, Time $time) {
  $this->container = $container;
  $this->accountSwitcher = $accountSwitcher;
  $this->configFactory = $configFactory;
  $this->database = $database;
  $this->entityTypeManager = $entityTypeManager;
  $this->moduleHandler = $moduleHandler;
  $this->time = $time;
}