You are here

public function StageFileProxyCommands::__construct in Stage File Proxy 8

StageFileProxyCommands constructor.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $configFactory: The config.factory service.

\Drupal\Core\Database\Connection $database: The database service.

\Drupal\stage_file_proxy\FetchManagerInterface $fetchManager: The stage_file_proxy.fetch_manager service.

\Psr\Log\LoggerInterface $logger: The logger.channel.stage_file_proxy service.

string $root: The app root.

File

src/Commands/StageFileProxyCommands.php, line 70

Class

StageFileProxyCommands
Drush commands for Stage File Proxy.

Namespace

Drupal\stage_file_proxy\Commands

Code

public function __construct(ConfigFactoryInterface $configFactory, Connection $database, FetchManagerInterface $fetchManager, LoggerInterface $logger, string $root) {
  parent::__construct();
  $this->moduleConfig = $configFactory
    ->get('stage_file_proxy.settings');
  $this->database = $database;
  $this->fetchManager = $fetchManager;
  $this->logger = $logger;
  $this->root = $root;
}