You are here

function AbstractClassLoaderDecorator::loadClass in X Autoload 7.5

Same name and namespace in other branches
  1. 7.4 lib/ClassLoader/AbstractClassLoaderDecorator.php \Drupal\xautoload\ClassLoader\AbstractClassLoaderDecorator::loadClass()

Callback for class loading. This will include ("require") the file found.

Parameters

string $class: The class to load.

Overrides ClassLoaderInterface::loadClass

5 methods override AbstractClassLoaderDecorator::loadClass()
AbstractQueuedCachedClassLoader::loadClass in src/ClassLoader/AbstractQueuedCachedClassLoader.php
Callback for class loading. This will include ("require") the file found.
ApcClassLoader::loadClass in src/ClassLoader/ApcClassLoader.php
Callback for class loading. This will include ("require") the file found.
ApcuClassLoader::loadClass in src/ClassLoader/ApcuClassLoader.php
Callback for class loading. This will include ("require") the file found.
WinCacheClassLoader::loadClass in src/ClassLoader/WinCacheClassLoader.php
Callback for class loading. This will include ("require") the file found.
XCacheClassLoader::loadClass in src/ClassLoader/XCacheClassLoader.php
Callback for class loading. This will include ("require") the file found.

File

src/ClassLoader/AbstractClassLoaderDecorator.php, line 38

Class

AbstractClassLoaderDecorator
Behaves mostly like the Symfony ClassLoader classes.

Namespace

Drupal\xautoload\ClassLoader

Code

function loadClass($class) {
  $this->finder
    ->loadClass($class);
}