Composer\Autoload
ClassLoader::loadClass()
Loads the given class or interface.
Метод класса: ClassLoader{}
Хуков нет.
Возвращает
true|null
. True if loaded, null otherwise
Использование
$ClassLoader = new ClassLoader(); $ClassLoader->loadClass( $class );
- $class(строка) (обязательный)
- The name of the class
Код ClassLoader::loadClass() ClassLoader::loadClass WPSCache 1.12.0
public function loadClass($class) { if ($file = $this->findFile($class)) { $includeFile = self::$includeFile; $includeFile($file); return true; } return null; }