You are here

public function FeaturesGenerator::__construct in Features 8.3

Same name and namespace in other branches
  1. 8.4 src/FeaturesGenerator.php \Drupal\features\FeaturesGenerator::__construct()

Constructs a new FeaturesGenerator object.

Parameters

\Drupal\features\FeaturesManagerInterface $features_manager: The features manager.

\Drupal\Component\Plugin\PluginManagerInterface $generator_manager: The package generation methods plugin manager.

\Drupal\features\FeaturesAssignerInterface $assigner: The feature assigner interface.

\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger.

\Psr\Log\LoggerInterface $logger: A logger instance.

File

src/FeaturesGenerator.php, line 73

Class

FeaturesGenerator
Class responsible for performing package generation.

Namespace

Drupal\features

Code

public function __construct(FeaturesManagerInterface $features_manager, PluginManagerInterface $generator_manager, FeaturesAssignerInterface $assigner, MessengerInterface $messenger, LoggerInterface $logger) {
  $this->featuresManager = $features_manager;
  $this->generatorManager = $generator_manager;
  $this->assigner = $assigner;
  $this->messenger = $messenger;
  $this->logger = $logger;
}