You are here

public function PathLocator::getVendorDirectory in Automatic Updates 8.2

Returns the absolute path of the vendor directory.

Return value

string The absolute path of the vendor directory.

1 call to PathLocator::getVendorDirectory()
PathLocator::getProjectRoot in src/PathLocator.php
Returns the absolute path of the project root.

File

src/PathLocator.php, line 89

Class

PathLocator
Computes file system paths that are needed for automatic updates.

Namespace

Drupal\automatic_updates

Code

public function getVendorDirectory() : string {
  $reflector = new \ReflectionClass(ClassLoader::class);
  return dirname($reflector
    ->getFileName(), 2);
}