PHP 클래스 Cilex\Provider\Console\ContainerAwareApplication

저자: Beau Simensen ([email protected])
상속: extends Symfony\Component\Console\Application
파일 보기 프로젝트 열기: cilex/cilex 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( string $name = 'UNKNOWN', string $version = 'UNKNOWN' ) Constructor
getContainer ( ) : Pimple\Container Get the Container.
getService ( string $name ) : mixed | null Returns a service contained in the application pimple or null if none is found with that name.
setContainer ( Pimple\Container $pimple ) : void Sets a pimple instance onto this application.

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( string $name = 'UNKNOWN', string $version = 'UNKNOWN' )
$name string The name of the application
$version string The version of the application

getContainer() 공개 메소드

Get the Container.
public getContainer ( ) : Pimple\Container
리턴 Pimple\Container

getService() 공개 메소드

This is a convenience method used to retrieve an element from the Application pimple without having to assign the results of the getContainer() method in every call.
또한 보기: self::getContainer()
public getService ( string $name ) : mixed | null
$name string Name of the service.
리턴 mixed | null

setContainer() 공개 메소드

Sets a pimple instance onto this application.
public setContainer ( Pimple\Container $pimple ) : void
$pimple Pimple\Container
리턴 void