You are here

public function VendorHardeningPlugin::activate in Drupal 8

Same name and namespace in other branches
  1. 9 composer/Plugin/VendorHardening/VendorHardeningPlugin.php \Drupal\Composer\Plugin\VendorHardening\VendorHardeningPlugin::activate()

File

composer/Plugin/VendorHardening/VendorHardeningPlugin.php, line 60

Class

VendorHardeningPlugin
A Composer plugin to clean out your project's vendor directory.

Namespace

Drupal\Composer\Plugin\VendorHardening

Code

public function activate(Composer $composer, IOInterface $io) {
  $this->composer = $composer;
  $this->io = $io;

  // Set up configuration.
  $this->config = new Config($this->composer
    ->getPackage());
}