namespace Nette\Loaders
Class RobotLoader
Nette auto loader is responsible for loading classes and interfaces.
- Nette\Object
-
Nette\Loaders\AutoLoader
-
Nette\Loaders\RobotLoader
public
|
#
__construct(
)
|
public
void
|
#
register(
)
Register autoloader. Register autoloader. |
public
void
|
#
tryLoad(
string
$type
)
Handles autoloading of classes or interfaces. Handles autoloading of classes or interfaces. Parameters$type string |
public
void
|
#
rebuild(
)
Rebuilds class list cache. Rebuilds class list cache. |
public
array
|
#
getIndexedClasses(
)
Returnsarray of class => filename
|
public
void
|
#
addDirectory(
string|array
$path
)
Add directory (or directories) to list. Add directory (or directories) to list. Parameters$path string|arrayThrows
\DirectoryNotFoundException if path is not found
|
public
RobotLoader
|
#
setCacheStorage(
Nette\Caching\ICacheStorage
$storage
)
Parameters$storage Nette\Caching\Cache |
public
Nette\Caching\Cache
|
#
getCacheStorage(
)
|
protected
Nette\Caching\Cache
|
#
getCache(
)
|
protected
string
|
#
getKey(
)
|
Methods Inherited From AutoLoader
Methods Inherited From Nette\Object
getReflection(), __call(), __callStatic(), extensionMethod(), __get(), __set(), __isset(), __unset()
array
|
$scanDirs | NULL |
# |
string
|
$ignoreDirs | '.*, *.old, *.bak, *.tmp, temp' |
comma separated wildcards # |
string
|
$acceptFiles | '*.php, *.php5' |
comma separated wildcards # |
bool
|
$autoRebuild | false |
# |
Properties Inherited From AutoLoader
$count