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 RETRY_LIMIT |
|
Properties
string[] | $ignoreDirs | ||
string[] | $acceptFiles |
Methods
No description
No description
Register autoloader.
Handles autoloading of classes, interfaces or traits.
Add path or paths to list.
No description
Excludes path or paths from list.
No description
Rebuilds class list cache.
Refreshes class list cache.
Sets auto-refresh mode.
Sets path to temporary directory.
No description
Details
at line 73
__construct()
No description
at line 81
__destruct()
No description
at line 92
RobotLoader
register(bool $prepend = false)
Register autoloader.
at line 102
void
tryLoad(string $type)
Handles autoloading of classes, interfaces or traits.
at line 145
RobotLoader
addDirectory(string ...$paths)
Add path or paths to list.
at line 156
RobotLoader
reportParseErrors(bool $on = true)
No description
at line 167
RobotLoader
excludeDirectory(string ...$paths)
Excludes path or paths from list.
at line 181
array
getIndexedClasses()
No description
at line 195
void
rebuild()
Rebuilds class list cache.
at line 209
void
refresh()
Refreshes class list cache.
at line 428
RobotLoader
setAutoRefresh(bool $on = true)
Sets auto-refresh mode.
at line 438
RobotLoader
setTempDirectory(string $dir)
Sets path to temporary directory.
at line 537
protected array
getCacheKey()
No description
Traits
Strict class for better experience.