src/Composer/Plugin.php
public function getVendorPath() {
    $config = $this->composer->getConfig();
    $filesystem = new Filesystem();
    $filesystem->ensureDirectoryExists($config->get('vendor-dir'));
    $vendorPath = $filesystem->normalizePath(realpath($config->get('vendor-dir')));

    return $vendorPath;
  }
public function getVendorPath() {
    $config = $this->composer->getConfig();
    $filesystem = new Filesystem();
    $filesystem->ensureDirectoryExists($config->get('vendor-dir'));
    $vendorPath = $filesystem->normalizePath(realpath($config->get('vendor-dir')));

    return $vendorPath;
  }
public function getVendorPath ( ) { $ config = $ this -> composer -> getConfig ( ) ; $ filesystem = new Filesystem ( ) ; $ filesystem -> ensureDirectoryExists ( $ config -> get ( 'vendor-dir' ) ) ; $ vendorPath = $ filesystem -> normalizePath ( realpath ( $ config -> get ( 'vendor-dir' ) ) ) ; return $ vendorPath ; }
Get the path to the 'vendor' directory.

@return string
Get the path to the vendor directory .