PHP Class Platformsh\Cli\Application

Inheritance: extends Symfony\Component\Console\Application
Show file Open project: commerceguys/platform-cli

Protected Properties

Property Type Description
$cliConfig CliConfig
$currentCommand Symfony\Component\Console\Command\Command | null

Public Methods

Method Description
__construct ( )
doRun ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
getHelp ( )
renderException ( Exception $e, Symfony\Component\Console\Output\OutputInterface $output )
setCurrentCommand ( Command $command = null ) Set the current command. This is used for error handling.

Protected Methods

Method Description
doRunCommand ( Command $command, Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
getCommands ( ) : Command[]
getDefaultCommands ( )
getDefaultHelperSet ( )
getDefaultInputDefinition ( )
setDefaultTimezone ( ) Set the default timezone.

Method Details

__construct() public method

public __construct ( )

doRun() public method

public doRun ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface

doRunCommand() protected method

protected doRunCommand ( Command $command, Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$command Symfony\Component\Console\Command\Command
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface

getCommands() protected method

protected getCommands ( ) : Command[]
return Symfony\Component\Console\Command\Command[]

getDefaultCommands() protected method

protected getDefaultCommands ( )

getDefaultHelperSet() protected method

protected getDefaultHelperSet ( )

getDefaultInputDefinition() protected method

getHelp() public method

public getHelp ( )

renderException() public method

public renderException ( Exception $e, Symfony\Component\Console\Output\OutputInterface $output )
$e Exception
$output Symfony\Component\Console\Output\OutputInterface

setCurrentCommand() public method

Set the current command. This is used for error handling.
public setCurrentCommand ( Command $command = null )
$command Symfony\Component\Console\Command\Command

setDefaultTimezone() protected method

PHP 5.4 has removed the autodetection of the system timezone, so it needs to be done manually. UTC is the fallback in case autodetection fails.
protected setDefaultTimezone ( )

Property Details

$cliConfig protected property

protected CliConfig,Platformsh\Cli $cliConfig
return CliConfig

$currentCommand protected property

protected Command,Symfony\Component\Console\Command|null $currentCommand
return Symfony\Component\Console\Command\Command | null