Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Plugin.php

function Plugin::init

Prepares the plugin so it's main functionality can be run.

Throws

\RuntimeException

LogicException

ProcessFailedException

RuntimeException

1 call to Plugin::init()
Plugin::activate in vendor/dealerdirect/phpcodesniffer-composer-installer/src/Plugin.php

File

vendor/dealerdirect/phpcodesniffer-composer-installer/src/Plugin.php, line 149

Class

Plugin
PHP_CodeSniffer standard installation manager.

Namespace

PHPCSStandards\Composer\Plugin\Installers\PHPCodeSniffer

Code

private function init() {
    $this->cwd = getcwd();
    $this->installedPaths = array();
    $this->processExecutor = new ProcessExecutor($this->io);
    $this->filesystem = new Filesystem($this->processExecutor);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal