public function UniversalClassLoader::loadClass

Loads the given class or interface.

Parameters

string $class The name of the class:

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

File

drupal/core/vendor/symfony/class-loader/Symfony/Component/ClassLoader/UniversalClassLoader.php, line 246

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;
  }
}