PHP Class Thelia\Command\ContainerAwareCommand

Author: Fabien Potencier ([email protected])
Author: Gilles Bourgeat ([email protected])
Inheritance: extends Symfony\Component\Console\Command\Command, implements Symfony\Component\DependencyInjection\ContainerAwareInterface
Mostrar archivo Open project: thelia/thelia Class Usage Examples

Public Methods

Method Description
getDispatcher ( ) : EventDispatcher
setContainer ( Symfony\Component\DependencyInjection\ContainerInterface $container = null )

Protected Methods

Method Description
getBaseUrl ( Thelia\Model\Lang $lang = null ) : string
getContainer ( ) : Symfony\Component\DependencyInjection\ContainerInterface
initRequest ( Thelia\Model\Lang $lang = null ) For init an Request, if your command has need an Request

Method Details

getBaseUrl() protected method

Since: 2.3
protected getBaseUrl ( Thelia\Model\Lang $lang = null ) : string
$lang Thelia\Model\Lang
return string

getContainer() protected method

protected getContainer ( ) : Symfony\Component\DependencyInjection\ContainerInterface
return Symfony\Component\DependencyInjection\ContainerInterface

getDispatcher() public method

public getDispatcher ( ) : EventDispatcher
return Symfony\Component\EventDispatcher\EventDispatcher

initRequest() protected method

For init an Request, if your command has need an Request
Since: 2.3
protected initRequest ( Thelia\Model\Lang $lang = null )
$lang Thelia\Model\Lang

setContainer() public method

See also: ContainerAwareInterface::setContainer()
public setContainer ( Symfony\Component\DependencyInjection\ContainerInterface $container = null )
$container Symfony\Component\DependencyInjection\ContainerInterface