You are here

public function S3fsCommands::__construct in S3 File System 4.0.x

Same name and namespace in other branches
  1. 8.3 src/Commands/S3fsCommands.php \Drupal\s3fs\Commands\S3fsCommands::__construct()

S3fsCommands constructor.

Parameters

\Drupal\s3fs\S3fsServiceInterface $s3fs: S3fs service.

\Drupal\s3fs\Batch\S3fsFileMigrationBatchInterface $s3fs_file_migration_batch: S3fs file migration service.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: Drupal config.factory service.

\Drupal\s3fs\Batch\S3fsRefreshCacheBatchInterface $s3fs_refresh_cache_batch: S3fs RefreshCacheBatch service.

File

src/Commands/S3fsCommands.php, line 62

Class

S3fsCommands
S3FS Drush commands handler.

Namespace

Drupal\s3fs\Commands

Code

public function __construct(S3fsServiceInterface $s3fs, S3fsFileMigrationBatchInterface $s3fs_file_migration_batch, ConfigFactoryInterface $config_factory, S3fsRefreshCacheBatchInterface $s3fs_refresh_cache_batch) {
  $this->s3fs = $s3fs;
  $this->s3fsFileMigrationBatch = $s3fs_file_migration_batch;
  $this->s3fsConfig = $config_factory
    ->get('s3fs.settings');
  $this->s3fsRefreshCacheBatch = $s3fs_refresh_cache_batch;
}