PHP Class Bldr\Application

Author: Aaron Scherer ([email protected])
Inheritance: extends Symfony\Component\Console\Application, implements Dflydev\EmbeddedComposer\Core\EmbeddedComposerAwareInterface
Exibir arquivo Open project: bldr-io/bldr Class Usage Examples

Public Properties

Property Type Description
$BUILD_NAME string
$logo string

Public Methods

Method Description
__construct ( Dflydev\EmbeddedComposer\Core\EmbeddedComposerInterface $embeddedComposer )
create ( Dflydev\EmbeddedComposer\Core\EmbeddedComposerInterface $embeddedComposer ) : Application
doRun ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) {@inheritDoc}
find ( string $name ) : Command Falls back to "run" for a shortcut
getCommands ( ) : Command[]
getDefinition ( ) : Symfony\Component\Console\Input\InputDefinition Resets arguments if shortcutting
getEmbeddedComposer ( ) : Dflydev\EmbeddedComposer\Core\EmbeddedComposerInterface
getHelp ( ) {@inheritDoc}
setBuildName ( )

Protected Methods

Method Description
doRunCommand ( Command $command, Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) Adds a container to Container Aware Commands
getDefaultInputDefinition ( ) : Symfony\Component\Console\Input\InputDefinition

Private Methods

Method Description
buildContainer ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) Builds the container with extensions
getBldrVersion ( ) : string
setEnvironmentVariables ( ) Sets Environment Variables

Method Details

__construct() public method

public __construct ( Dflydev\EmbeddedComposer\Core\EmbeddedComposerInterface $embeddedComposer )
$embeddedComposer Dflydev\EmbeddedComposer\Core\EmbeddedComposerInterface

create() public static method

public static create ( Dflydev\EmbeddedComposer\Core\EmbeddedComposerInterface $embeddedComposer ) : Application
$embeddedComposer Dflydev\EmbeddedComposer\Core\EmbeddedComposerInterface
return Application

doRun() public method

{@inheritDoc}
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

{@inheritDoc}
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

find() public method

Falls back to "run" for a shortcut
public find ( string $name ) : Command
$name string
return Symfony\Component\Console\Command\Command

getCommands() public method

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

getDefaultInputDefinition() protected method

protected getDefaultInputDefinition ( ) : Symfony\Component\Console\Input\InputDefinition
return Symfony\Component\Console\Input\InputDefinition

getDefinition() public method

Resets arguments if shortcutting
public getDefinition ( ) : Symfony\Component\Console\Input\InputDefinition
return Symfony\Component\Console\Input\InputDefinition

getEmbeddedComposer() public method

public getEmbeddedComposer ( ) : Dflydev\EmbeddedComposer\Core\EmbeddedComposerInterface
return Dflydev\EmbeddedComposer\Core\EmbeddedComposerInterface

getHelp() public method

{@inheritDoc}
public getHelp ( )

setBuildName() public method

public setBuildName ( )

Property Details

$BUILD_NAME public_oe static_oe property

public static string $BUILD_NAME
return string