You are here

public function UniversalClassLoader::loadClass in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/class-loader/UniversalClassLoader.php \Symfony\Component\ClassLoader\UniversalClassLoader::loadClass()

Loads the given class or interface.

Parameters

string $class The name of the class:

Return value

bool|null True, if loaded

1 method overrides UniversalClassLoader::loadClass()
DebugUniversalClassLoader::loadClass in vendor/symfony/class-loader/DebugUniversalClassLoader.php
Loads the given class or interface.

File

vendor/symfony/class-loader/UniversalClassLoader.php, line 237

Class

UniversalClassLoader
UniversalClassLoader implements a "universal" autoloader for PHP 5.3.

Namespace

Symfony\Component\ClassLoader

Code

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