PHP Class Gush\Application

Inheritance: extends Symfony\Component\Console\Application
Show file Open project: gushphp/gush Class Usage Examples

Protected Properties

Property Type Description
$adapter null | Gush\Adapter\Adapter
$adapterFactory Gush\Factory\AdapterFactory
$config The configuration file
$dispatcher Symfony\Component\EventDispatcher\EventDispatcher
$issueTracker null | Gush\Adapter\IssueTracker

Public Methods

Method Description
__construct ( AdapterFactory $adapterFactory, Config $config, $version = '@package_version@' )
getAdapter ( ) : Gush\Adapter\Adapter Get the Repository adapter.
getAdapterFactory ( ) : AdapterFactory
getCommands ( ) : Command[]
getConfig ( ) : Config Get the application configuration.
getDispatcher ( ) : EventDispatcher
getHelp ( ) : string
getIssueTracker ( ) : Gush\Adapter\IssueTracker Get the IssueTracker adapter.
getSupportedMetaFiles ( )
setAdapter ( Gush\Adapter\Adapter $adapter ) Set the Repository Adapter.
setIssueTracker ( Gush\Adapter\IssueTracker $issueTracker ) Set the IssueTracker Adapter.

Protected Methods

Method Description
doRunCommand ( Command $command, Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
getDefaultHelperSet ( )
registerSubscribers ( )

Method Details

__construct() public method

public __construct ( AdapterFactory $adapterFactory, Config $config, $version = '@package_version@' )
$adapterFactory Gush\Factory\AdapterFactory
$config Config

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

getAdapter() public method

Get the Repository adapter.
public getAdapter ( ) : Gush\Adapter\Adapter
return Gush\Adapter\Adapter

getAdapterFactory() public method

public getAdapterFactory ( ) : AdapterFactory
return Gush\Factory\AdapterFactory

getCommands() public method

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

getConfig() public method

Get the application configuration.
public getConfig ( ) : Config
return Config

getDefaultHelperSet() protected method

protected getDefaultHelperSet ( )

getDispatcher() public method

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

getHelp() public method

public getHelp ( ) : string
return string

getIssueTracker() public method

Get the IssueTracker adapter.
public getIssueTracker ( ) : Gush\Adapter\IssueTracker
return Gush\Adapter\IssueTracker

getSupportedMetaFiles() public method

registerSubscribers() protected method

protected registerSubscribers ( )

setAdapter() public method

Set the Repository Adapter.
public setAdapter ( Gush\Adapter\Adapter $adapter )
$adapter Gush\Adapter\Adapter

setIssueTracker() public method

Set the IssueTracker Adapter.
public setIssueTracker ( Gush\Adapter\IssueTracker $issueTracker )
$issueTracker Gush\Adapter\IssueTracker

Property Details

$adapter protected property

protected null|Adapter,Gush\Adapter $adapter
return null | Gush\Adapter\Adapter

$adapterFactory protected property

protected AdapterFactory,Gush\Factory $adapterFactory
return Gush\Factory\AdapterFactory

$config protected property

The configuration file
protected $config

$dispatcher protected property

protected EventDispatcher,Symfony\Component\EventDispatcher $dispatcher
return Symfony\Component\EventDispatcher\EventDispatcher

$issueTracker protected property

protected null|IssueTracker,Gush\Adapter $issueTracker
return null | Gush\Adapter\IssueTracker