You are here

public function Handler::__construct in Drupal 8

Same name and namespace in other branches
  1. 9 composer/Plugin/Scaffold/Handler.php \Drupal\Composer\Plugin\Scaffold\Handler::__construct()
  2. 10 composer/Plugin/Scaffold/Handler.php \Drupal\Composer\Plugin\Scaffold\Handler::__construct()

Handler constructor.

Parameters

\Composer\Composer $composer: The Composer service.

\Composer\IO\IOInterface $io: The Composer I/O service.

File

composer/Plugin/Scaffold/Handler.php, line 78

Class

Handler
Core class of the plugin.

Namespace

Drupal\Composer\Plugin\Scaffold

Code

public function __construct(Composer $composer, IOInterface $io) {
  $this->composer = $composer;
  $this->io = $io;
  $this->manageOptions = new ManageOptions($composer);
  $this->manageAllowedPackages = new AllowedPackages($composer, $io, $this->manageOptions);
}