function ManageGitIgnore::__construct

Same name in other branches
  1. 9 composer/Plugin/Scaffold/ManageGitIgnore.php \Drupal\Composer\Plugin\Scaffold\ManageGitIgnore::__construct()
  2. 8.9.x composer/Plugin/Scaffold/ManageGitIgnore.php \Drupal\Composer\Plugin\Scaffold\ManageGitIgnore::__construct()
  3. 10 composer/Plugin/Scaffold/ManageGitIgnore.php \Drupal\Composer\Plugin\Scaffold\ManageGitIgnore::__construct()

ManageGitIgnore constructor.

Parameters

\Composer\IO\IOInterface $io: The Composer IO interface.

string $dir: The directory where the project is located.

File

composer/Plugin/Scaffold/ManageGitIgnore.php, line 36

Class

ManageGitIgnore
Manage the .gitignore file.

Namespace

Drupal\Composer\Plugin\Scaffold

Code

public function __construct(IOInterface $io, $dir) {
    $this->io = $io;
    $this->dir = $dir;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.