public function ClassLoader::loadClass in Zircon Profile 8
Same name in this branch
- 8 vendor/composer/ClassLoader.php \Composer\Autoload\ClassLoader::loadClass()
- 8 vendor/symfony/class-loader/ClassLoader.php \Symfony\Component\ClassLoader\ClassLoader::loadClass()
- 8 vendor/symfony/debug/Tests/DebugClassLoaderTest.php \Symfony\Component\Debug\Tests\ClassLoader::loadClass()
- 8 vendor/doctrine/common/lib/Doctrine/Common/ClassLoader.php \Doctrine\Common\ClassLoader::loadClass()
Same name and namespace in other branches
- 8.0 vendor/doctrine/common/lib/Doctrine/Common/ClassLoader.php \Doctrine\Common\ClassLoader::loadClass()
Loads the given class or interface.
Parameters
string $className The name of the class to load.:
Return value
boolean TRUE if the class has been successfully loaded, FALSE otherwise.
File
- vendor/
doctrine/ common/ lib/ Doctrine/ Common/ ClassLoader.php, line 176
Class
- ClassLoader
- A <tt>ClassLoader</tt> is an autoloader for class files that can be installed on the SPL autoload stack. It is a class loader that either loads only classes of a specific namespace or all namespaces and it is suitable for working…
Namespace
Doctrine\CommonCode
public function loadClass($className) {
if (self::typeExists($className)) {
return true;
}
if (!$this
->canLoadClass($className)) {
return false;
}
require ($this->includePath !== null ? $this->includePath . DIRECTORY_SEPARATOR : '') . str_replace($this->namespaceSeparator, DIRECTORY_SEPARATOR, $className) . $this->fileExtension;
return self::typeExists($className);
}