You are here

public function CodeMirrorEditorCommands::__construct in The CodeMirror Editor 8

Constructs the object.

Parameters

\Drupal\Core\Asset\LibraryDiscoveryInterface $library_discovery: The library discovery service.

\GuzzleHttp\Client $http_client: The HTTP client.

\Drupal\Core\Asset\AssetCollectionOptimizerInterface $js_collection_optimizer: The JS asset collection optimizer service.

\Drupal\Core\Asset\AssetCollectionOptimizerInterface $css_collection_optimizer: The CSS asset collection optimizer service.

\Drupal\Core\State\StateInterface $state: The state key value store.

\Drupal\Component\Datetime\TimeInterface $time: The time service.

\Drupal\Core\File\FileSystemInterface $file_system: The file handler.

File

src/Commands/CodeMirrorEditorCommands.php, line 87

Class

CodeMirrorEditorCommands
Drush integration for CodeMirror editor module.

Namespace

Drupal\codemirror_editor\Commands

Code

public function __construct(LibraryDiscoveryInterface $library_discovery, Client $http_client, AssetCollectionOptimizerInterface $js_collection_optimizer, AssetCollectionOptimizerInterface $css_collection_optimizer, StateInterface $state, TimeInterface $time, FileSystemInterface $file_system) {
  parent::__construct();
  $this->libraryDiscovery = $library_discovery;
  $this->httpClient = $http_client;
  $this->jsCollectionOptimizer = $js_collection_optimizer;
  $this->cssCollectionOptimizer = $css_collection_optimizer;
  $this->state = $state;
  $this->time = $time;
  $this->fileSystem = $file_system;
}