CoreFiles by mySites.guru
SignalableCommandInterface.php34 lines, 856 bytes, from Joomla_5.1.0-alpha4-Alpha-Full_Package.zip
Raw History Compare with 5.1.0-alpha3
md5
683d90cab94789a794388303e938c2ad
sha1
54ce434dc1138ebb981965e5b91562378859f0d5
sha256
bf706a3b064c13368ea18d82a8ed81577019aae267ffa1801e2de394c559b2d0
<?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.
     */
    public function getSubscribedSignals(): array;

    /**
     * The method will be called when the application is signaled.
     *
     * @param int|false $previousExitCode

     * @return int|false The exit code to return or false to continue the normal execution
     */
    public function handleSignal(int $signal, /* int|false $previousExitCode = 0 */);
}

The same content is in 21 releases, Joomla 5.0.0-alpha2 to 5.1.0-alpha4. See them all, or every version of this file.