PHP Класс Cilex\Provider\Console\ContainerAwareApplication

Автор: Beau Simensen ([email protected])
Наследование: extends Symfony\Component\Console\Application
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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