class RobotLoader

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

setAutoRefresh($on = true)

Sets auto-refresh mode.

setTempDirectory($dir)

Sets path to temporary directory.

setCacheStorage(IStorage $storage)

No description

IStorage
getCacheStorage()

No description

Cache
getCache()

No description

array
getKey()

No description

Details

at line 49
__construct()

No description

at line 62
RobotLoader register($prepend = false)

Register autoloader.

Parameters

$prepend

Return Value

RobotLoader

at line 75
void tryLoad($type)

Handles autoloading of classes, interfaces or traits.

Parameters

$type

Return Value

void

at line 118
RobotLoader addDirectory($path)

Add path or paths to list.

Parameters

$path

Return Value

RobotLoader

at line 128
array getIndexedClasses()

No description

Return Value

array

of class => filename

at line 144
void rebuild()

Rebuilds class list cache.

Return Value

void

at line 157
rebuildCallback()

internal  
 

No description

at line 346
RobotLoader setAutoRefresh($on = true)

Sets auto-refresh mode.

Parameters

$on

Return Value

RobotLoader

at line 357
RobotLoader setTempDirectory($dir)

Sets path to temporary directory.

Parameters

$dir

Return Value

RobotLoader

at line 372
RobotLoader setCacheStorage(IStorage $storage)

No description

Parameters

IStorage $storage

Return Value

RobotLoader

at line 382
IStorage getCacheStorage()

No description

Return Value

IStorage

at line 391
protected Cache getCache()

No description

Return Value

Cache

at line 404
protected array getKey()

No description

Return Value

array

Traits

SmartObject