Метод | Описание | |
---|---|---|
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 |