RobotLoader
class RobotLoader
Nette auto loader is responsible for loading classes and interfaces.
$loader = new Nette\Loaders\RobotLoader;
$loader->addDirectory('app');
$loader->excludeDirectory('app/exclude');
$loader->setTempDirectory('temp');
$loader->register();
Constants
private RetryLimit |
|
Properties
string[] | $ignoreDirs | ||
string[] | $acceptFiles |
Methods
__construct()
No description
__destruct()
No description
register(bool $prepend = false)
Register autoloader.
void
tryLoad(string $type)
Handles autoloading of classes, interfaces or traits.
addDirectory(string ...$paths)
Add path or paths to list.
reportParseErrors(bool $state = true)
No description
excludeDirectory(string ...$paths)
Excludes path or paths from list.
array
getIndexedClasses()
No description
void
rebuild()
Rebuilds class list cache.
void
refresh()
Refreshes class list cache.
setAutoRefresh(bool $state = true)
Sets auto-refresh mode.
setTempDirectory(string $dir)
Sets path to temporary directory.
array
generateCacheKey()
No description
Details
at line 60
__construct()
No description
at line 68
__destruct()
No description
at line 79
RobotLoader
register(bool $prepend = false)
Register autoloader.
at line 89
void
tryLoad(string $type)
Handles autoloading of classes, interfaces or traits.
at line 131
RobotLoader
addDirectory(string ...$paths)
Add path or paths to list.
at line 138
RobotLoader
reportParseErrors(bool $state = true)
No description
at line 148
RobotLoader
excludeDirectory(string ...$paths)
Excludes path or paths from list.
at line 158
array
getIndexedClasses()
No description
at line 173
void
rebuild()
Rebuilds class list cache.
at line 187
void
refresh()
Refreshes class list cache.
at line 388
RobotLoader
setAutoRefresh(bool $state = true)
Sets auto-refresh mode.
at line 398
RobotLoader
setTempDirectory(string $dir)
Sets path to temporary directory.
at line 510
protected array
generateCacheKey()
No description