You are here

public function Psr4ClassLoader::loadClass in Zircon Profile 8

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

Parameters

string $class:

Return value

bool

File

vendor/symfony/class-loader/Psr4ClassLoader.php, line 65

Class

Psr4ClassLoader
A PSR-4 compatible class loader.

Namespace

Symfony\Component\ClassLoader

Code

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