You are here

public function CliCommandWrapper::__construct in CKEditor Media Embed Plugin 8

Constructs CLI commands object.

Parameters

\Drupal\ckeditor\CKEditorPluginManager $ckeditorPluginManager: The CKEditor plugin manager service.

\Drupal\Core\Asset\LibraryDiscovery $libraryDiscovery: The library discover service.

\GuzzleHttp\Client $httpClient: The http client.

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

File

src/Command/CliCommandWrapper.php, line 73

Class

CliCommandWrapper
Class CLICommands.

Namespace

Drupal\ckeditor_media_embed\Command

Code

public function __construct(CKEditorPluginManager $ckeditorPluginManager, LibraryDiscovery $libraryDiscovery, Client $httpClient, ConfigFactory $configFactory) {
  $this->ckeditorPluginManager = $ckeditorPluginManager;
  $this->libraryDiscovery = $libraryDiscovery;
  $this->httpClient = $httpClient;
  $this->configFactory = $configFactory;
  $this->fileSystem = new FileSystem();
  $this
    ->setPackageVersion();
}