2023-03-21 22:52:57 +00:00
|
|
|
```
|
|
|
|
██████╗ ██████╗ ██╗ ██╗███████╗██████╗
|
|
|
|
██╔══██╗██╔═══██╗██║ ██║██╔════╝██╔══██╗
|
|
|
|
██████╔╝██║ ██║██║ █╗ ██║█████╗ ██████╔╝
|
|
|
|
██╔═══╝ ██║ ██║██║███╗██║██╔══╝ ██╔══██╗
|
|
|
|
██║ ╚██████╔╝╚███╔███╔╝███████╗██║ ██║
|
|
|
|
╚═╝ ╚═════╝ ╚══╝╚══╝ ╚══════╝╚═╝ ╚═╝
|
|
|
|
```
|
2023-10-04 18:28:29 +00:00
|
|
|
# abstract class Factory (Details)
|
|
|
|
> namespace: **VDM\Joomla\Componentbuilder\Power**
|
2023-03-21 22:52:57 +00:00
|
|
|
```uml
|
|
|
|
@startuml
|
2023-10-04 18:28:29 +00:00
|
|
|
abstract Factory #Orange {
|
|
|
|
# static $container
|
2023-03-21 22:52:57 +00:00
|
|
|
+ {static} _(string $key) : Mixed
|
|
|
|
+ {static} getContainer() : Container
|
2023-10-04 18:28:29 +00:00
|
|
|
# {static} createContainer() : Container
|
2023-03-21 22:52:57 +00:00
|
|
|
}
|
|
|
|
|
2023-10-04 18:28:29 +00:00
|
|
|
note right of Factory::_
|
|
|
|
Get any class from the package container
|
2023-03-21 22:52:57 +00:00
|
|
|
|
|
|
|
since: 3.2.0
|
|
|
|
return: Mixed
|
|
|
|
end note
|
|
|
|
|
2023-10-04 18:28:29 +00:00
|
|
|
note right of Factory::getContainer
|
|
|
|
Get the global package container
|
|
|
|
|
|
|
|
since: 3.2.0
|
|
|
|
return: Container
|
|
|
|
end note
|
|
|
|
|
|
|
|
note right of Factory::createContainer
|
|
|
|
Create a container object
|
2023-03-21 22:52:57 +00:00
|
|
|
|
|
|
|
since: 3.2.0
|
|
|
|
return: Container
|
|
|
|
end note
|
|
|
|
|
|
|
|
@enduml
|
|
|
|
```
|
|
|
|
|
|
|
|
---
|
|
|
|
```
|
|
|
|
██╗ ██████╗██████╗
|
|
|
|
██║██╔════╝██╔══██╗
|
|
|
|
██║██║ ██████╔╝
|
|
|
|
██ ██║██║ ██╔══██╗
|
|
|
|
╚█████╔╝╚██████╗██████╔╝
|
|
|
|
╚════╝ ╚═════╝╚═════╝
|
|
|
|
```
|
|
|
|
> Build with [Joomla Component Builder](https://git.vdm.dev/joomla/Component-Builder)
|
|
|
|
|