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

  • ConfigEvent
  • ConsoleEvents
  • PreHandleEvent
  • PreResolveEvent
  • Overview
  • Namespace
  • Class

Class PreResolveEvent

Dispatched before the console arguments are resolved to a command.

Add a listener for this event to customize the command used for the given console arguments.

Symfony\Component\EventDispatcher\Event
Extended by Webmozart\Console\Api\Event\PreResolveEvent
Namespace: Webmozart\Console\Api\Event
Author: Bernhard Schussek bschussek@gmail.com
Since: 1.0
Located at Api/Event/PreResolveEvent.php
Methods summary
public
# __construct( Webmozart\Console\Api\Args\RawArgs $rawArgs, Webmozart\Console\Api\Application\Application $application )

Creates the event.

Creates the event.

Parameters

$rawArgs
The raw console arguments.
$application
The application.
public Webmozart\Console\Api\Args\RawArgs
# getRawArgs( )

Returns the raw console arguments.

Returns the raw console arguments.

Returns

Webmozart\Console\Api\Args\RawArgs
The raw console arguments.
public Webmozart\Console\Api\Application\Application
# getApplication( )

Returns the application.

Returns the application.

Returns

Webmozart\Console\Api\Application\Application
The application.
public Webmozart\Console\Api\Resolver\ResolvedCommand
# getResolvedCommand( )

Returns the resolved command.

Returns the resolved command.

Returns

Webmozart\Console\Api\Resolver\ResolvedCommand

Returns the resolved command or null if none was set.

public
# setResolvedCommand( Webmozart\Console\Api\Resolver\ResolvedCommand $resolvedCommand = null )

Sets the resolved command.

Sets the resolved command.

Parameters

$resolvedCommand

The resolved command. Set to null to let the configured resolver decide.

Webmozart Console API API documentation generated by ApiGen