You are here

public function ClassLoader::loadClass in Currency 7.2

Loads the given class or interface.

Parameters

string $class The name of the class:

Return value

bool|null True if loaded, null otherwise

File

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