ExtensionHandler
in package
FinalYes
Table of Contents
Properties
- $extensions : array<string|int, ExtensionInfo>
- $extensionsDirs : array<string|int, mixed>
- $instance : ExtensionHandler|null
- $invalidExtensions : array<string|int, ExtensionInfo>
- $loaders : array<string|int, ExtensionLoader>
- $validator : Validator
Methods
- getInstance() : self
- loadExtensions() : Generator<string|int, class-string>
- onBoot() : void
- __construct() : mixed
- collectExtensionsFromDir() : array<string|int, ExtensionInfo>
- getExtensions() : array<string|int, ExtensionInfo>
Properties
$extensions
private
array<string|int, ExtensionInfo>
$extensions
= null
$extensionsDirs
private
array<string|int, mixed>
$extensionsDirs
= []
$instance
private
static ExtensionHandler|null
$instance
$invalidExtensions
private
array<string|int, ExtensionInfo>
$invalidExtensions
= []
$loaders
private
array<string|int, ExtensionLoader>
$loaders
= []
$validator
private
Validator
$validator
Methods
getInstance()
public
static getInstance([array<string|int, string> $extensionsDirs = [] ]) : self
Parameters
- $extensionsDirs : array<string|int, string> = []
Return values
selfloadExtensions()
public
loadExtensions() : Generator<string|int, class-string>
Return values
Generator<string|int, class-string>onBoot()
public
onBoot(ConsoleCommandEvent $event) : void
Parameters
- $event : ConsoleCommandEvent
__construct()
private
__construct([array<string|int, string> $extensionsDirs = [] ]) : mixed
Parameters
- $extensionsDirs : array<string|int, string> = []
collectExtensionsFromDir()
private
collectExtensionsFromDir(string $extensionsDir) : array<string|int, ExtensionInfo>
Parameters
- $extensionsDir : string
Return values
array<string|int, ExtensionInfo>getExtensions()
private
getExtensions() : array<string|int, ExtensionInfo>