ContainerFactory
in package
FinalYes
Table of Contents
Properties
- $configLoader : XmlFileLoader
- $configs : array<int, array<string|int, mixed>>
- $container : ContainerBuilder
- $registeredExtensions : array<string, string>
Methods
- __construct() : mixed
- addConfigFile() : void
- create() : Container
- loadExtensionConfig() : void
- processConfig() : void
- registerExtension() : void
- resolveExtensionClass() : ExtensionInterface>
Properties
$configLoader read-only
private
XmlFileLoader
$configLoader
$configs
private
array<int, array<string|int, mixed>>
$configs
= []
$container read-only
private
ContainerBuilder
$container
$registeredExtensions
private
array<string, string>
$registeredExtensions
= []
Methods
__construct()
public
__construct([array<int, ExtensionInterface> $defaultExtensions = [] ]) : mixed
Parameters
- $defaultExtensions : array<int, ExtensionInterface> = []
addConfigFile()
public
addConfigFile(string $filePath) : void
Parameters
- $filePath : string
create()
public
create(string $vendorDir) : Container
Parameters
- $vendorDir : string
Return values
ContainerloadExtensionConfig()
public
loadExtensionConfig(string $extension, array<string|int, mixed> $config) : void
Parameters
- $extension : string
- $config : array<string|int, mixed>
processConfig()
private
processConfig() : void
registerExtension()
private
registerExtension(ExtensionInterface $extension, array<string|int, mixed> $config) : void
Parameters
- $extension : ExtensionInterface
- $config : array<string|int, mixed>
resolveExtensionClass()
private
resolveExtensionClass(string $name) : ExtensionInterface>
Parameters
- $name : string