PHP Интерфейс Inpsyde\MultilingualPress\Service\Container

С версии: 3.0.0
Наследование: extends ArrayAcces\ArrayAccess
Показать файл Открыть проект Примеры использования интерфейса

Открытые методы

Метод Описание
bootstrap ( ) : void Bootstraps (and locks) the container.
extend ( string $name, callable $new_factory ) : static Replaces the factory callback with the given name with the given factory callback.
lock ( ) : void Locks the container.
share ( string $name, mixed $value ) : static Stores the given value or factory callback with the given name, and defines it to be accessible even after the container has been bootstrapped.

Описание методов

bootstrap() публичный метод

Bootstraps (and locks) the container.
С версии: 3.0.0
public bootstrap ( ) : void
Результат void

extend() публичный метод

Replaces the factory callback with the given name with the given factory callback.
С версии: 3.0.0
public extend ( string $name, callable $new_factory ) : static
$name string The name of an existing factory callback.
$new_factory callable The new factory callback.
Результат static Container instance.

lock() публичный метод

Locks the container.
С версии: 3.0.0
public lock ( ) : void
Результат void

share() публичный метод

Stores the given value or factory callback with the given name, and defines it to be accessible even after the container has been bootstrapped.
С версии: 3.0.0
public share ( string $name, mixed $value ) : static
$name string The name of a value or factory callback.
$value mixed The value or factory callback.
Результат static Container instance.