MilkCore

LazyAutoloader
in package

Table of Contents

Methods

__construct()  : mixed
analyze_file()  : void
Analyze a specific file and show found classes
autoload()  : void
Main autoloader
rebuild_class()  : bool
Force rebuild of a single class
register()  : void
Register the autoloader
showStats()  : void
Show cache statistics

Methods

__construct()

public __construct([string $cacheFile = 'storage/autoload_cache.php' ]) : mixed
Parameters
$cacheFile : string = 'storage/autoload_cache.php'

analyze_file()

Analyze a specific file and show found classes

public analyze_file(string $filePath) : void
Parameters
$filePath : string

autoload()

Main autoloader

public autoload(string $className) : void
Parameters
$className : string

rebuild_class()

Force rebuild of a single class

public rebuild_class(string $className) : bool
Parameters
$className : string
Return values
bool

        
On this page

Search results