DebugUniversalClassLoader (Component\ClassLoader)
Symfony\Component\ClassLoader\DebugUniversalClassLoader
class DebugUniversalClassLoader extends UniversalClassLoader
Checks that the class is actually declared in the included file.
Methods
useIncludePath(bool $useIncludePath) Turns on searching the include for class files. | from UniversalClassLoader | |
bool | getUseIncludePath() Can be used to check if the autoloader uses the include path to check for classes. | from UniversalClassLoader |
array | getNamespaces() Gets the configured namespaces. | from UniversalClassLoader |
array | getPrefixes() Gets the configured class prefixes. | from UniversalClassLoader |
array | getNamespaceFallbacks() Gets the directory(ies) to use as a fallback for namespaces. | from UniversalClassLoader |
array | getPrefixFallbacks() Gets the directory(ies) to use as a fallback for class prefixes. | from UniversalClassLoader |
registerNamespaceFallbacks(array $dirs) Registers the directory to use as a fallback for namespaces. | from UniversalClassLoader | |
registerNamespaceFallback(string $dir) Registers a directory to use as a fallback for namespaces. | from UniversalClassLoader | |
registerPrefixFallbacks(array $dirs) Registers directories to use as a fallback for class prefixes. | from UniversalClassLoader | |
registerPrefixFallback(string $dir) Registers a directory to use as a fallback for class prefixes. | from UniversalClassLoader | |
registerNamespaces(array $namespaces) Registers an array of namespaces. | from UniversalClassLoader | |
registerNamespace(string $namespace, array|string $paths) Registers a namespace. | from UniversalClassLoader | |
registerPrefixes(array $classes) Registers an array of classes using the PEAR naming convention. | from UniversalClassLoader | |
registerPrefix(string $prefix, array|string $paths) Registers a set of classes using the PEAR naming convention. | from UniversalClassLoader | |
register(bool $prepend = false) Registers this instance as an autoloader. | from UniversalClassLoader | |
bool|null | loadClass(string $class) Loads the given class or interface. | |
string|null | findFile(string $class) Finds the path to the file where the class is defined. | from UniversalClassLoader |
static | enable() Replaces all regular UniversalClassLoader instances by a DebugUniversalClassLoader ones. |
Details
public useIncludePath(bool $useIncludePath)
Turns on searching the include for class files.
Allows easy loading of installed PEAR packages.
public bool getUseIncludePath()
Can be used to check if the autoloader uses the include path to check for classes.
public array getNamespaces()
Gets the configured namespaces.
public array getPrefixes()
Gets the configured class prefixes.
public array getNamespaceFallbacks()
Gets the directory(ies) to use as a fallback for namespaces.
public array getPrefixFallbacks()
Gets the directory(ies) to use as a fallback for class prefixes.
public registerNamespaceFallbacks(array $dirs)
Registers the directory to use as a fallback for namespaces.
public registerNamespaceFallback(string $dir)
Registers a directory to use as a fallback for namespaces.
public registerPrefixFallbacks(array $dirs)
Registers directories to use as a fallback for class prefixes.
public registerPrefixFallback(string $dir)
Registers a directory to use as a fallback for class prefixes.
public registerNamespaces(array $namespaces)
Registers an array of namespaces.
public registerNamespace(string $namespace, array|string $paths)
Registers a namespace.
public registerPrefixes(array $classes)
Registers an array of classes using the PEAR naming convention.
public registerPrefix(string $prefix, array|string $paths)
Registers a set of classes using the PEAR naming convention.
public register(bool $prepend = false)
Registers this instance as an autoloader.
public bool|null loadClass(string $class)
Loads the given class or interface.
public string|null findFile(string $class)
Finds the path to the file where the class is defined.
static public enable()
Replaces all regular UniversalClassLoader instances by a DebugUniversalClassLoader ones.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Component/ClassLoader/DebugUniversalClassLoader.html