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

  • DefaultResolver
  • ResolveResult
  • Overview
  • Namespace
  • Class

Class DefaultResolver

Parses the raw console arguments for the command to execute.

Webmozart\Console\Resolver\DefaultResolver implements Webmozart\Console\Api\Resolver\CommandResolver
Namespace: Webmozart\Console\Resolver
Author: Bernhard Schussek bschussek@gmail.com
Since: 1.0
Located at Resolver/DefaultResolver.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.

Implementation of

Webmozart\Console\Api\Resolver\CommandResolver::resolveCommand()
Webmozart Console API API documentation generated by ApiGen