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
IStorage $cacheStorage
array read-only $indexedClasses

Methods

__construct()

No description

register($prepend = FALSE)

Register autoloader.

void
tryLoad($type)

Handles autoloading of classes, interfaces or traits.

addDirectory($path)

Add directory (or directories) 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 51
__construct()

No description

at line 64
RobotLoader register($prepend = FALSE)

Register autoloader.

Parameters

$prepend

Return Value

RobotLoader

at line 77
void tryLoad($type)

Handles autoloading of classes, interfaces or traits.

Parameters

$type

Return Value

void

at line 117
RobotLoader addDirectory($path)

Add directory (or directories) to list.

Parameters

$path

Return Value

RobotLoader

Exceptions

DirectoryNotFoundException

at line 133
array getIndexedClasses()

No description

Return Value

array

of class => filename

at line 149
void rebuild()

Rebuilds class list cache.

Return Value

void

at line 159
_rebuildCallback()

internal  
 

No description

at line 346
RobotLoader setCacheStorage(IStorage $storage)

No description

Parameters

IStorage $storage

Return Value

RobotLoader

at line 356
IStorage getCacheStorage()

No description

Return Value

IStorage

at line 365
protected Cache getCache()

No description

Return Value

Cache

at line 378
protected string getKey()

No description

Return Value

string