Overview

Namespaces

  • Webmozart
    • Console
      • Adapter
      • Api
        • Application
        • Args
          • Format
        • Command
        • Config
        • Event
        • Formatter
        • IO
        • Resolver
      • Args
      • Config
      • Formatter
      • Handler
        • Help
      • IO
        • InputStream
        • OutputStream
      • Process
      • Resolver
      • UI
        • Alignment
        • Component
        • Help
        • Layout
        • Style
      • Util

Classes

  • ApplicationAdapter
  • ArgsFormatInputDefinition
  • ArgsInput
  • CommandAdapter
  • FormatterAdapter
  • IOOutput
  • StyleConverter
  • Overview
  • Namespace
  • Class

Class CommandAdapter

Adapts a Command instance of this package to Symfony's Symfony\Component\Console\Command\Command API.

Symfony\Component\Console\Command\Command
Extended by Webmozart\Console\Adapter\CommandAdapter
Namespace: Webmozart\Console\Adapter
Author: Bernhard Schussek bschussek@gmail.com
Since: 1.0
Located at Adapter/CommandAdapter.php
Methods summary
public
# __construct( Webmozart\Console\Api\Command\Command $adaptedCommand, Symfony\Component\Console\Application $application )

Creates the adapter.

Creates the adapter.

Parameters

$adaptedCommand
The adapted command.
$application
The application.
public Symfony\Component\Console\Command\Command
# getAdaptedCommand( )

Returns the adapted command.

Returns the adapted command.

Returns

Symfony\Component\Console\Command\Command
The adapted command.
public static
# setApplication( Symfony\Component\Console\Application $application = null )

Does nothing.

Does nothing.

Parameters

$application
The application.

Returns

static
The current instance.
public static
# setHelperSet( Symfony\Component\Console\Helper\HelperSet $helperSet )

Does nothing.

Does nothing.

Parameters

$helperSet
The helper set.

Returns

static
The current instance.
public static
# setCode( callable $code )

Does nothing.

Does nothing.

Parameters

$code
The code.

Returns

static
The current instance.
public static
# setDefinition( array|Symfony\Component\Console\Input\InputDefinition $definition )

Does nothing.

Does nothing.

Parameters

$definition
The definition

Returns

static
The current instance.
public static
# setName( string $name )

Does nothing.

Does nothing.

Parameters

$name
The name.

Returns

static
The current instance.
public static
# setProcessTitle( string $title )

Does nothing.

Does nothing.

Parameters

$title
The process title.

Returns

static
The current instance.
public static
# setDescription( string $description )

Does nothing.

Does nothing.

Parameters

$description
The description.

Returns

static
The current instance.
public static
# setHelp( string $help )

Does nothing.

Does nothing.

Parameters

$help
The help.

Returns

static
The current instance.
public static
# setAliases( string[] $aliases )

Does nothing.

Does nothing.

Parameters

$aliases
The aliases.

Returns

static
The current instance.
public static
# mergeApplicationDefinition( boolean $mergeArgs = true )

Does nothing.

Does nothing.

Parameters

$mergeArgs

Returns

static
The current instance.
public static
# addArgument( string $name, null $mode = null, string $description = '', null $default = null )

Does nothing.

Does nothing.

Parameters

$name
$mode
$description
$default

Returns

static
The current instance.
public static
# addOption( string $name, null $shortcut = null, null $mode = null, string $description = '', null $default = null )

Does nothing.

Does nothing.

Parameters

$name
$shortcut
$mode
$description
$default

Returns

static
The current instance.
public
# isEnabled( )
public integer
# run( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )

Executes the command.

Executes the command.

Parameters

$input
The console input.
$output
The console output.

Returns

integer
The exit status.
Webmozart Console API API documentation generated by ApiGen