class RobotLoader extends Object

Nette auto loader is responsible for loading classes and interfaces.

Constants

RETRY_LIMIT

Properties

string|array $ignoreDirs
string|array $acceptFiles
bool $autoRebuild

Methods

__construct()

No description

register($prepend = FALSE)

Register autoloader.

void
tryLoad($type)

Handles autoloading of classes, interfaces or traits.

addDirectory($path)

Add path or paths to list.

array
getIndexedClasses()

No description

void
rebuild()

Rebuilds class list cache.

rebuildCallback()

No description

setCacheStorage(IStorage $storage)

No description

IStorage
getCacheStorage()

No description

Cache
getCache()

No description

string
getKey()

No description

Details

at line 47
__construct()

No description

at line 60
RobotLoader register($prepend = FALSE)

Register autoloader.

Parameters

$prepend

Return Value

RobotLoader

at line 73
void tryLoad($type)

Handles autoloading of classes, interfaces or traits.

Parameters

$type

Return Value

void

at line 116
RobotLoader addDirectory($path)

Add path or paths to list.

Parameters

$path

Return Value

RobotLoader

at line 126
array getIndexedClasses()

No description

Return Value

array

of class => filename

at line 142
void rebuild()

Rebuilds class list cache.

Return Value

void

at line 152
rebuildCallback()

internal  
 

No description

at line 341
RobotLoader setCacheStorage(IStorage $storage)

No description

Parameters

IStorage $storage

Return Value

RobotLoader

at line 351
IStorage getCacheStorage()

No description

Return Value

IStorage

at line 360
protected Cache getCache()

No description

Return Value

Cache

at line 373
protected string getKey()

No description

Return Value

string