Property | Type | Description | |
---|---|---|---|
$acceptFiles | comma separated wildcards | ||
$autoRebuild | boolean | @deprecated | |
$ignoreDirs | comma separated wildcards |
Method | Description | |
---|---|---|
__construct ( ) | ||
addDirectory ( $path ) : self | Add path or paths to list. | |
getCacheStorage ( ) | ||
getIndexedClasses ( ) : array | ||
rebuild ( ) : void | Rebuilds class list cache. | |
register ( $prepend = FALSE ) : self | Register autoloader. | |
setAutoRefresh ( $on = TRUE ) : self | Sets auto-refresh mode. | |
setCacheStorage ( Nette\Caching\IStorage $storage ) | ||
setTempDirectory ( $path ) : self | Sets path to temporary directory. | |
tryLoad ( $type ) : void | Handles autoloading of classes, interfaces or traits. |
Method | Description | |
---|---|---|
getCacheKey ( ) : array |
Method | Description | |
---|---|---|
createFileIterator ( $dir ) : Iterator | Creates an iterator scaning directory for PHP files, subdirectories and 'netterobots.txt' files. | |
getCacheFile ( ) : string | ||
loadCache ( ) : void | Loads class list from cache. | |
refresh ( ) : void | Refreshes class list. | |
saveCache ( ) : void | Writes class list to cache. | |
scanPhp ( $code ) : array | Searches classes, interfaces and traits in PHP file. | |
updateFile ( $file ) : void |
public addDirectory ( $path ) : self | ||
return | self |
public getIndexedClasses ( ) : array | ||
return | array | of class => filename |
public register ( $prepend = FALSE ) : self | ||
return | self |
public setAutoRefresh ( $on = TRUE ) : self | ||
return | self |
public setCacheStorage ( Nette\Caching\IStorage $storage ) | ||
$storage | Nette\Caching\IStorage |
public setTempDirectory ( $path ) : self | ||
return | self |