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 30 comma separated wildcards |
|
bool | $autoRebuild |
|
line 33 |
|
string | $ignoreDirs | '.*, *.old, *.bak, *.tmp, temp' |
line 27 comma separated wildcards |
|
array | $scanDirs |
|
line 24 |
Method Details | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
line 54 __constructpublic RobotLoader __construct ()
|
||||||||||||||||||
line 173 addClasspublic void addClass (string $class, string $file) Add class and file name to the list.
|
||||||||||||||||||
line 154 addDirectorypublic void addDirectory (string|array $path) Add directory (or directories) to list.
|
||||||||||||||||||
line 337 getCacheprotected Cache getCache ()
|
||||||||||||||||||
line 347 getKeyprotected string getKey ()
|
||||||||||||||||||
line 357 isProductionprotected bool isProduction ()
|
||||||||||||||||||
line 126 rebuildpublic void rebuild ([bool $force = Rebuilds class list cache.
|
||||||||||||||||||
line 67 registerpublic void register () Register autoloader.
|
||||||||||||||||||
line 91 tryLoadpublic void tryLoad (string $type) Handles autoloading of classes or interfaces.
|