Class RobotLoader (namespace Nette\Loaders)
Nette auto loader is responsible for loading classes and interfaces.
Object | --AutoLoader | --RobotLoader
Public Method Summary | |
---|---|
void |
addClass
(string $class, string $file)
Add class and file name to the list.
|
void |
addDirectory
(string|array $path)
Add directory (or directories) to list.
|
void |
rebuild
()
Rebuilds class list cache.
|
void |
tryLoad
(string $type)
Handles autoloading of classes or interfaces.
|
Protected Method Summary | |
---|---|
protected Cache |
getCache
()
|
protected bool |
isProduction
()
|
Methods Inherited From AutoLoader |
---|
getLoaders(), load(), register(), tryLoad(), unregister() |
Methods Inherited From Object |
---|
extensionMethod(), getClass(), getReflection(), __call(), __callStatic(), __get(), __isset(), __set(), __unset() |
Variable Summary | ||||
---|---|---|---|---|
string | $acceptFiles | '*.php, *.php5' |
line 45 comma separated wildcards |
|
bool | $autoRebuild |
|
line 48 |
|
string | $ignoreDirs | '.svn, .cvs, *.old, *.bak, *.tmp' |
line 42 comma separated wildcards |
|
array | $scanDirs |
|
line 39 |
Method Details | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
line 171 addClasspublic void addClass (string $class, string $file) Add class and file name to the list.
|
||||||||||||||||||
line 152 addDirectorypublic void addDirectory (string|array $path) Add directory (or directories) to list.
|
||||||||||||||||||
line 328 getCacheprotected Cache getCache ()
|
||||||||||||||||||
line 338 isProductionprotected bool isProduction ()
|
||||||||||||||||||
line 132 rebuildpublic void rebuild () Rebuilds class list cache.
|
||||||||||||||||||
line 69 tryLoadpublic void tryLoad (string $type) Handles autoloading of classes or interfaces.
|