Composer\Autoload
ClassLoader::loadClass()
Loads the given class or interface.
Method of the class: ClassLoader{}
No Hooks.
Return
true|null
. True if loaded, null otherwise
Usage
$ClassLoader = new ClassLoader(); $ClassLoader->loadClass( $class );
- $class(string) (required)
- The name of the class
ClassLoader::loadClass() ClassLoader::loadClass code WPSCache 1.12.4
public function loadClass($class) { if ($file = $this->findFile($class)) { $includeFile = self::$includeFile; $includeFile($file); return true; } return null; }