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 ConsoleTerminateEvent

Allows to manipulate the exit code of a command after its execution.

Symfony\Component\EventDispatcher\Event
Extended by Symfony\Component\Console\Event\ConsoleEvent
Extended by Symfony\Component\Console\Event\ConsoleTerminateEvent
Namespace: Symfony\Component\Console\Event
Author: Francesco Levorato git@flevour.net
Located at Event/ConsoleTerminateEvent.php
Methods summary
public
# __construct( Symfony\Component\Console\Command\Command $command, Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output, $exitCode )

Overrides

Symfony\Component\Console\Event\ConsoleEvent::__construct()
public
# setExitCode( integer $exitCode )

Sets the exit code.

Sets the exit code.

Parameters

$exitCode
The command exit code
public integer
# getExitCode( )

Gets the exit code.

Gets the exit code.

Returns

integer
The command exit code
Methods inherited from Symfony\Component\Console\Event\ConsoleEvent
getCommand(), getInput(), getOutput()
Properties inherited from Symfony\Component\Console\Event\ConsoleEvent
$command
Peridot API documentation generated by ApiGen