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

  • ResolvedCommand

Interfaces

  • CommandResolver

Exceptions

  • CannotResolveCommandException
  • Overview
  • Namespace
  • Class

Interface CommandResolver

Returns the command to execute for the given console arguments.

Direct known implementers

Webmozart\Console\Resolver\DefaultResolver
Namespace: Webmozart\Console\Api\Resolver
Author: Bernhard Schussek bschussek@gmail.com
Since: 1.0
Located at Api/Resolver/CommandResolver.php
Methods summary
public Webmozart\Console\Api\Resolver\ResolvedCommand
# resolveCommand( Webmozart\Console\Api\Args\RawArgs $args, Webmozart\Console\Api\Application\Application $application )

Returns the command to execute for the given console arguments.

Returns the command to execute for the given console arguments.

Parameters

$args
The console arguments.
$application
The application.

Returns

Webmozart\Console\Api\Resolver\ResolvedCommand
The command to execute.

Throws

Webmozart\Console\Api\Resolver\CannotResolveCommandException
If the command cannot be resolved.
Webmozart Console API API documentation generated by ApiGen