CoreFiles by mySites.guru
SignalableCommandInterface.php36 lines, 915 bytes, from Joomla_6.2.1-Stable-Full_Package.zip
Raw History Compare with 6.2.0
md5
01ab992747c109af37e4a01fddeee9c1
sha1
1573eef3324c7013812d3a6721f8af7db98260d6
sha256
33f93b23ad8b389347461df3205d1ecd5ae313dc0e05c585a5a89b27b9c16e24
<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <[email protected]>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\Console\Command;

/**
 * Interface for command reacting to signal.
 *
 * @author GrĂ©goire Pineau <[email protected]>
 */
interface SignalableCommandInterface
{
    /**
     * Returns the list of signals to subscribe.
     *
     * @return list<\SIG*>
     *
     * @see https://php.net/pcntl.constants for signals
     */
    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;
}

The same content is in 31 releases, Joomla 6.1.0-alpha2 to 6.2.1. See them all, or every version of this file.