PHP 인터페이스 ManaPHP\ComponentInterface

파일 보기 프로젝트 열기: manaphp/manaphp 0 사용 예제들

공개 메소드들

메소드 설명
attachEvent ( string $event, callable $handler ) : static Attach a listener to the events manager
dump ( ) : array
fireEvent ( string $event, array $data = [] ) : boolean | null Fires an event in the events manager causing that the active listeners will be notified about it
getDependencyInjector ( ) : Di Returns the internal dependency injector
setDependencyInjector ( ManaPHP\DiInterface $dependencyInjector ) : static Sets the dependency injector

메소드 상세

attachEvent() 공개 메소드

Attach a listener to the events manager
public attachEvent ( string $event, callable $handler ) : static
$event string
$handler callable
리턴 static

dump() 공개 메소드

public dump ( ) : array
리턴 array

fireEvent() 공개 메소드

Fires an event in the events manager causing that the active listeners will be notified about it
public fireEvent ( string $event, array $data = [] ) : boolean | null
$event string
$data array
리턴 boolean | null

getDependencyInjector() 공개 메소드

Returns the internal dependency injector
public getDependencyInjector ( ) : Di
리턴 Di

setDependencyInjector() 공개 메소드

Sets the dependency injector
public setDependencyInjector ( ManaPHP\DiInterface $dependencyInjector ) : static
$dependencyInjector ManaPHP\DiInterface
리턴 static