You are here

public function ClassLoader::loadClass in TMGMT Translator Smartling 8.4

Same name and namespace in other branches
  1. 8.2 vendor/composer/ClassLoader.php \Composer\Autoload\ClassLoader::loadClass()
  2. 8.3 vendor/composer/ClassLoader.php \Composer\Autoload\ClassLoader::loadClass()

Loads the given class or interface.

Parameters

string $class The name of the class:

Return value

bool|null True if loaded, null otherwise

File

vendor/composer/ClassLoader.php, line 319

Class

ClassLoader
ClassLoader implements a PSR-0, PSR-4 and classmap class loader.

Namespace

Composer\Autoload

Code

public function loadClass($class) {
  if ($file = $this
    ->findFile($class)) {
    includeFile($file);
    return true;
  }
}