You are here

public function XcacheClassLoader::loadClass in Zircon Profile 8

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

Loads the given class or interface.

Parameters

string $class The name of the class:

Return value

bool|null True, if loaded

File

vendor/symfony/class-loader/XcacheClassLoader.php, line 108

Class

XcacheClassLoader
XcacheClassLoader implements a wrapping autoloader cached in XCache for PHP 5.3.

Namespace

Symfony\Component\ClassLoader

Code

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