PHP Интерфейс SelvinOrtiz\Zit\IZit

Показать файл Открыть проект

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

Метод Описание
bind ( string $id, Closure $serviceGenerator ) Must bind the service generator and resolve it by its id
extend ( string $id, Closure $callable ) Must bind the callable function and execute it by its id
stash ( string $id, object $serviceInstance ) Must stash away a service instance and resolve it by its id

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

bind() публичный Метод

Must bind the service generator and resolve it by its id
public bind ( string $id, Closure $serviceGenerator )
$id string The service generator id
$serviceGenerator Closure The service generator closure/function

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

Must bind the callable function and execute it by its id
public extend ( string $id, Closure $callable )
$id string The callable function id
$callable Closure The callable function

stash() публичный Метод

Must stash away a service instance and resolve it by its id
public stash ( string $id, object $serviceInstance )
$id string The service instance id
$serviceInstance object The service instance