You are here

public function PackageController::__construct in Ludwig 8

Constructs a new PackageController object.

Parameters

\Drupal\ludwig\PackageManagerInterface $package_manager: The package manager.

\Drupal\ludwig\PackageDownloaderInterface $package_downloader: The package downloader.

\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The string translation service.

\Drupal\Core\Extension\ModuleExtensionList $module_extension_list: The module extension list.

Symfony\Component\HttpFoundation\RequestStack $request_stack: The RequestStack object.

File

src/Controller/PackageController.php, line 67

Class

PackageController
Displays the Packages report.

Namespace

Drupal\ludwig\Controller

Code

public function __construct(PackageManagerInterface $package_manager, PackageDownloaderInterface $package_downloader, TranslationInterface $string_translation, ModuleExtensionList $module_extension_list, RequestStack $request_stack) {
  $this->packageManager = $package_manager;
  $this->packageDownloader = $package_downloader;
  $this
    ->setStringTranslation($string_translation);
  $this->moduleExtensionList = $module_extension_list;
  $this->requestStack = $request_stack;
}