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

  • ConsoleCommandEvent
  • ConsoleEvent
  • ConsoleExceptionEvent
  • ConsoleTerminateEvent
  • Overview
  • Namespace
  • Class

Class ConsoleCommandEvent

Allows to do things before the command is executed, like skipping the command or changing the input.

Symfony\Component\EventDispatcher\Event
Extended by Symfony\Component\Console\Event\ConsoleEvent
Extended by Symfony\Component\Console\Event\ConsoleCommandEvent
Namespace: Symfony\Component\Console\Event
Author: Fabien Potencier fabien@symfony.com
Located at Event/ConsoleCommandEvent.php
Methods summary
public boolean
# disableCommand( )

Disables the command, so it won't be run.

Disables the command, so it won't be run.

Returns

boolean
public boolean
# enableCommand( )

Enables the command.

Enables the command.

Returns

boolean
public boolean
# commandShouldRun( )

Returns true if the command is runnable, false otherwise.

Returns true if the command is runnable, false otherwise.

Returns

boolean
Methods inherited from Symfony\Component\Console\Event\ConsoleEvent
__construct(), getCommand(), getInput(), getOutput()
Constants summary
integer RETURN_CODE_DISABLED

The return code for skipped commands, this will also be passed into the terminate event.

The return code for skipped commands, this will also be passed into the terminate event.

# 113
Properties inherited from Symfony\Component\Console\Event\ConsoleEvent
$command
Peridot API documentation generated by ApiGen