Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. SignalableCommandInterface.php

interface SignalableCommandInterface

Interface for command reacting to signal.

@author Grégoire Pineau <lyrixx@lyrix.info>

Hierarchy

  • interface \Symfony\Component\Console\Command\SignalableCommandInterface

Expanded class hierarchy of SignalableCommandInterface

All classes that implement SignalableCommandInterface

1 file declares its use of SignalableCommandInterface
Application.php in vendor/symfony/console/Application.php

File

vendor/symfony/console/Command/SignalableCommandInterface.php, line 19

Namespace

Symfony\Component\Console\Command
View source
interface SignalableCommandInterface {
    
    /**
     * Returns the list of signals to subscribe.
     */
    public function getSubscribedSignals() : array;
    
    /**
     * The method will be called when the application is signaled.
     *
     * @return int|false The exit code to return or false to continue the normal execution
     */
    public function handleSignal(int $signal, int|false $previousExitCode = 0) : int|false;

}

Members

Title Sort descending Modifiers Object type Summary Overrides
SignalableCommandInterface::getSubscribedSignals public function Returns the list of signals to subscribe. 1
SignalableCommandInterface::handleSignal public function The method will be called when the application is signaled. 1

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal