public function PackageController::__construct in Composer Manager 8
Constructs a PackageController object.
Parameters
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.
\Drupal\composer_manager\PackageManagerInterface $package_manager: The package manager.
\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The string translation service.
File
- src/
Controller/ PackageController.php, line 52
Class
- PackageController
- Controller for displaying the list of required packages.
Namespace
Drupal\composer_manager\ControllerCode
public function __construct(ModuleHandlerInterface $module_handler, PackageManagerInterface $package_manager, TranslationInterface $string_translation) {
$this->moduleHandler = $module_handler;
$this->packageManager = $package_manager;
$this
->setStringTranslation($string_translation);
}