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

Breadcrumb

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

function ClassMapGenerator::getCwd

See also

Composer\Util\Platform::getCwd

2 calls to ClassMapGenerator::getCwd()
ClassMapGenerator::filterByNamespace in vendor/composer/class-map-generator/src/ClassMapGenerator.php
Remove classes which could not have been loaded by namespace autoloaders
ClassMapGenerator::scanPaths in vendor/composer/class-map-generator/src/ClassMapGenerator.php
Iterate over all files in the given directory searching for classes

File

vendor/composer/class-map-generator/src/ClassMapGenerator.php, line 332

Class

ClassMapGenerator
ClassMapGenerator

Namespace

Composer\ClassMapGenerator

Code

private static function getCwd() : string {
    $cwd = getcwd();
    if (false === $cwd) {
        throw new \RuntimeException('Could not determine the current working directory');
    }
    return $cwd;
}

API Navigation

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