PHP 인터페이스 Inpsyde\MultilingualPress\Service\Container

부터: 3.0.0
상속: extends ArrayAcces\ArrayAccess
파일 보기 프로젝트 열기: inpsyde/multilingual-press 0 사용 예제들

공개 메소드들

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