PHP Class Pantheon\Terminus\Terminus

Exibir arquivo Open project: pantheon-systems/terminus

Public Methods

Method Description
__construct ( Config $config, Symfony\Component\Console\Input\InputInterface $input = null, Symfony\Component\Console\Output\OutputInterface $output = null ) Object constructor
run ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : integer Runs the instantiated Terminus application

Private Methods

Method Description
configureContainer ( League\Container\ContainerInterface $container ) Register the necessary classes for Terminus
getCommands ( array $options = ['path' => null, 'namespace' => null] ) : TerminusCommand[] Discovers command classes using CommandFileDiscovery
startVCR ( array $options = ['cassette' => 'tmp', 'mode' => 'none'] ) : void Starts and configures PHP-VCR
stopVCR ( ) : void Stops PHP-VCR's recording and playback

Method Details

__construct() public method

Object constructor
public __construct ( Config $config, Symfony\Component\Console\Input\InputInterface $input = null, Symfony\Component\Console\Output\OutputInterface $output = null )
$config Config
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface

run() public method

Runs the instantiated Terminus application
public run ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : integer
$input Symfony\Component\Console\Input\InputInterface An input object to run the application with
$output Symfony\Component\Console\Output\OutputInterface An output object to run the application with
return integer $status_code The exiting status code of the application