Overview

Namespaces

  • Evenement
  • None
  • Peridot
    • Console
    • Core
    • Reporter
    • Runner
    • Scope
    • Test
  • Symfony
    • Component
      • Console
        • Command
        • Descriptor
        • Event
        • Exception
        • Formatter
        • Helper
        • Input
        • Logger
        • Output
        • Question
        • Style
        • Tester
        • Tests
          • Command
          • Descriptor
          • Fixtures
          • Formatter
          • Helper
          • Input
          • Logger
          • Output
          • Style
          • Tester

Classes

  • BarBucCommand
  • Foo1Command
  • Foo2Command
  • Foo3Command
  • Foo4Command
  • Foo5Command
  • Foo6Command
  • FoobarCommand
  • FooCommand
  • FooSubnamespaced1Command
  • FooSubnamespaced2Command
  • TestCommand

Functions

  • afterEach
  • beforeEach
  • context
  • describe
  • fcontext
  • fdescribe
  • fit
  • it
  • xcontext
  • xdescribe
  • xit
  • Overview
  • Namespace
  • Class

Class FooCommand

Base class for all commands.

Symfony\Component\Console\Command\Command
Extended by FooCommand
Author: Fabien Potencier fabien@symfony.com
Located at Tests/Fixtures/FooCommand.php
Methods summary
protected
# configure( )

Configures the current command.

Configures the current command.

Overrides

Symfony\Component\Console\Command\Command::configure()
protected
# interact( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )

Interacts with the user.

Interacts with the user.

This method is executed before the InputDefinition is validated. This means that this is the only place where the command can interactively ask for values of missing required arguments.

Parameters

$input
An InputInterface instance
$output
An OutputInterface instance

Overrides

Symfony\Component\Console\Command\Command::interact()
protected null|integer
# execute( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )

Executes the current command.

Executes the current command.

This method is not abstract because you can use this class as a concrete class. In this case, instead of defining the execute() method, you set the code to execute by passing a Closure to the setCode() method.

Parameters

$input
An InputInterface instance
$output
An OutputInterface instance

Returns

null|integer
null or 0 if everything went fine, or an error code

Throws

LogicException
When this abstract method is not implemented

See

Symfony\Component\Console\Command\Command::setCode()

Overrides

Symfony\Component\Console\Command\Command::execute()
Methods inherited from Symfony\Component\Console\Command\Command
__construct(), addArgument(), addOption(), addUsage(), asText(), asXml(), getAliases(), getApplication(), getDefinition(), getDescription(), getHelp(), getHelper(), getHelperSet(), getName(), getNativeDefinition(), getProcessedHelp(), getSynopsis(), getUsages(), ignoreValidationErrors(), initialize(), isEnabled(), mergeApplicationDefinition(), run(), setAliases(), setApplication(), setCode(), setDefinition(), setDescription(), setHelp(), setHelperSet(), setName(), setProcessTitle()
Properties summary
public $input
#
public $output
#
Peridot API documentation generated by ApiGen