Class RobotLoader (namespace Nette\Loaders)
Nette auto loader is responsible for loading classes and interfaces.
Object | --AutoLoader | --RobotLoader
Public Method Summary | |
---|---|
RobotLoader |
__construct
()
|
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
([bool $force =
TRUE ])
Rebuilds class list cache.
|
void |
register
()
Register autoloader.
|
void |
tryLoad
(string $type)
Handles autoloading of classes or interfaces.
|
Protected Method Summary | |
---|---|
protected Cache |
getCache
()
|
protected string |
getKey
()
|
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 44 comma separated wildcards |
|
bool | $autoRebuild |
|
line 47 |
|
string | $ignoreDirs | '.*, *.old, *.bak, *.tmp, temp' |
line 41 comma separated wildcards |
|
array | $scanDirs |
|
line 38 |
Method Details | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
line 68 __constructpublic RobotLoader __construct ()
|
||||||||||||||||||
line 187 addClasspublic void addClass (string $class, string $file) Add class and file name to the list.
|
||||||||||||||||||
line 168 addDirectorypublic void addDirectory (string|array $path) Add directory (or directories) to list.
|
||||||||||||||||||
line 345 getCacheprotected Cache getCache ()
|
||||||||||||||||||
line 355 getKeyprotected string getKey ()
|
||||||||||||||||||
line 365 isProductionprotected bool isProduction ()
|
||||||||||||||||||
line 140 rebuildpublic void rebuild ([bool $force = Rebuilds class list cache.
|
||||||||||||||||||
line 81 registerpublic void register () Register autoloader.
|
||||||||||||||||||
line 105 tryLoadpublic void tryLoad (string $type) Handles autoloading of classes or interfaces.
|