You are here

public function ClassLoader::loadClass in Zircon Profile 8

Same name in this branch
  1. 8 vendor/composer/ClassLoader.php \Composer\Autoload\ClassLoader::loadClass()
  2. 8 vendor/symfony/class-loader/ClassLoader.php \Symfony\Component\ClassLoader\ClassLoader::loadClass()
  3. 8 vendor/symfony/debug/Tests/DebugClassLoaderTest.php \Symfony\Component\Debug\Tests\ClassLoader::loadClass()
  4. 8 vendor/doctrine/common/lib/Doctrine/Common/ClassLoader.php \Doctrine\Common\ClassLoader::loadClass()
Same name and namespace in other branches
  1. 8.0 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 298

Class

ClassLoader
ClassLoader implements a PSR-0 class loader

Namespace

Composer\Autoload

Code

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