PHP 클래스 Cilex\Application

저자: Mike van Riel ([email protected])
상속: extends Pimple\Container
파일 보기 프로젝트 열기: cilex/cilex 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( string $name, string | null $version = null, array $values = [] ) Registers the autoloader and necessary components.
boot ( ) : void Boots the Application by calling boot on every provider added and then subscribe in order to add listeners.
command ( string | Command $nameOrCommand, callable | null $callable = null ) : Command Allows you to add a command as Command object or as a command name+callable
register ( Pimple\ServiceProviderInterface $provider, array $values = [] ) {@inheritDoc}
run ( Symfony\Component\Console\Input\InputInterface $input = null, Symfony\Component\Console\Output\OutputInterface $output = null ) : integer Executes this application.

메소드 상세

__construct() 공개 메소드

Registers the autoloader and necessary components.
public __construct ( string $name, string | null $version = null, array $values = [] )
$name string Name for this application.
$version string | null Version number for this application.
$values array

boot() 공개 메소드

Boots the Application by calling boot on every provider added and then subscribe in order to add listeners.
public boot ( ) : void
리턴 void

command() 공개 메소드

Allows you to add a command as Command object or as a command name+callable
public command ( string | Command $nameOrCommand, callable | null $callable = null ) : Command
$nameOrCommand string | Symfony\Component\Console\Command\Command
$callable callable | null Must be a callable if $nameOrCommand is the command's name
리턴 Symfony\Component\Console\Command\Command The command instance that you can further configure

register() 공개 메소드

{@inheritDoc}
public register ( Pimple\ServiceProviderInterface $provider, array $values = [] )
$provider Pimple\ServiceProviderInterface
$values array

run() 공개 메소드

Executes this application.
public run ( Symfony\Component\Console\Input\InputInterface $input = null, Symfony\Component\Console\Output\OutputInterface $output = null ) : integer
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
리턴 integer