Loader

Class Loader
Methods Summary
public
# __construct( string $extensionsDirectory , bool $strictMode = false, ArrayIterator\Extension\ParserInterface $parser = NULL )
Loader constructor.
public
# getParser( )
Get parser object instance.
public
# getExtensionsDirectory( )
Get extensions directory.
public
# isStrictMode( )
Get Strict Mode information.
public
# start( )
Start parsing extensions from given extensions directory.

uses

FilesystemIterator
public
# exist( string $selector )
Verify if extension is exist.
public
# isLoaded( string $selector )
Verify if extension loaded.
public
# getAllAvailableExtensions( )
Get available extensions selector.
public
# getDuplications( )
Get list of duplicate classes while on parsing process key name as base of directory.
public
# load( string $selector )
Load the extension by selector.

see

protected
# instantiateExtension( string $extensionClassName , ArrayIterator\Extension\ExtensionInfo $info )
Instantiate extension.
public
# __sleep( )
Magic Method __sleep keep the data when object being serialize.
public
# __wakeup( )
Magic Method __wakeup() process when serialized object being unserialize.
Properties Summary
protected string $extensionsDirectory
Extension directory to check.
# NULL
protected ArrayIterator\Extension\ParserInterface $parser
Extension Parser.
# NULL
protected SplFixedArray $stack
Stored data about extension
# NULL
protected bool $strictMode
Determine if on strict mode.
# false
protected string[] $keysNormal
List of original identifiers.
# NULL
protected int[] $keysLower
List of lower case identifier. Values as offset stack.
# NULL
protected string[]|null $loaded
List of loaded extensions.
# NULL
protected array|array[]|string[][] $duplications
List of class name duplication extension detect by parser. Key name as original string identifier.
# array ( )