PHP 인터페이스 SelvinOrtiz\Zit\IZit

파일 보기 프로젝트 열기: johndwells/craft.minimee

공개 메소드들

메소드 설명
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