PHP Class Pantheon\Terminus\Terminus

Afficher le fichier Open project: pantheon-systems/terminus

Méthodes publiques

Méthode 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

Méthode 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 méthode

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 méthode

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
Résultat integer $status_code The exiting status code of the application