Namespaces

  • Nette
    • Application
      • Diagnostics
      • Responses
      • Routers
      • UI
    • Caching
      • Storages
    • ComponentModel
    • Config
      • Adapters
      • Extensions
    • Database
      • Diagnostics
      • Drivers
      • Reflection
      • Table
    • DI
      • Diagnostics
    • Diagnostics
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Latte
      • Macros
    • Loaders
    • Localization
    • Mail
    • Reflection
    • Security
      • Diagnostics
    • Templating
    • Utils
      • PhpGenerator
  • NetteModule
  • none

Classes

  • AutoLoader
  • NetteLoader
  • RobotLoader
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Other releases
  • Nette homepage

Class RobotLoader

Nette auto loader is responsible for loading classes and interfaces.

Nette\Object
Extended by Nette\Loaders\AutoLoader
Extended by Nette\Loaders\RobotLoader
Namespace: Nette\Loaders
Author: David Grudl
Located at Loaders/RobotLoader.php
Methods summary
public
# __construct( )
public Nette\Loaders\RobotLoader
# register( )

Register autoloader.

Register autoloader.

Returns

Nette\Loaders\RobotLoader

Overrides

Nette\Loaders\AutoLoader::register()
public
# tryLoad( string $type )

Handles autoloading of classes, interfaces or traits.

Handles autoloading of classes, interfaces or traits.

Parameters

$type
string
public Nette\Loaders\RobotLoader
# addDirectory( string|array $path )

Add directory (or directories) to list.

Add directory (or directories) to list.

Parameters

$path
string|array

Returns

Nette\Loaders\RobotLoader

Throws

Nette\DirectoryNotFoundException
if path is not found
public array
# getIndexedClasses( )

Returns

array
of class => filename
public
# rebuild( )

Rebuilds class list cache.

Rebuilds class list cache.

public Nette\Loaders\RobotLoader
# setCacheStorage( Nette\Caching\IStorage $storage )

Returns

Nette\Loaders\RobotLoader
public Nette\Caching\IStorage
# getCacheStorage( )

Returns

Nette\Caching\IStorage
protected Nette\Caching\Cache
# getCache( )

Returns

Nette\Caching\Cache
protected string
# getKey( )

Returns

string
Methods inherited from Nette\Loaders\AutoLoader
getLoaders(), load(), unregister()
Methods inherited from Nette\Object
__call(), __callStatic(), __get(), __isset(), __set(), __unset(), extensionMethod(), getReflection()
Constants summary
integer RETRY_LIMIT 3
#
Properties summary
public array $scanDirs array()
#
public string|array $ignoreDirs '.*, *.old, *.bak, *.tmp, temp'
#

comma separated wildcards

comma separated wildcards

public string|array $acceptFiles '*.php, *.php5'
#

comma separated wildcards

comma separated wildcards

public boolean $autoRebuild TRUE
#
Properties inherited from Nette\Loaders\AutoLoader
$count
Magic properties summary
public Nette\Caching\IStorage $cacheStorage
#
public read-only array $indexedClasses
#
Magic properties inherited from Nette\Object
$reflection
Nette 2.0 API documentation generated by ApiGen 2.8.0