You are here

public function ComposerJsonSource::__construct in PatchInfo 8.2

Constructs a PatchInfoSourceBase object.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\Core\Logger\LoggerChannelFactoryInterface $logger_factory: The logger factory.

\Drupal\Core\File\FileSystemInterface $file_system: The file system service.

Overrides PatchInfoSourceBase::__construct

File

modules/patchinfo_source_composer/src/Plugin/PatchInfo/Source/ComposerJsonSource.php, line 55

Class

ComposerJsonSource
Gathers patch information from composer.json files.

Namespace

Drupal\patchinfo_source_composer\Plugin\patchinfo\source

Code

public function __construct(array $configuration, string $plugin_id, $plugin_definition, LoggerChannelFactoryInterface $logger_factory, FileSystemInterface $file_system) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $logger_factory, $file_system);
  $this->fileSystem = $file_system;
}