CoreFiles by mySites.guru
SignalableCommandInterface.php34 lines, 862 bytes, from Joomla_5.4.10-Stable-Full_Package.zip
Raw History Compare with 5.4.9
md5
4da1e218d3c4b06f3354dcb6aea6446f
sha1
ceec2aaabcb09692a13b65c286f209933ed026ee
sha256
729c464b78e0e8179b5196ec839e0bcde1443bb270c844a9ee8dfd3d8c93b715
<?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 23 releases, Joomla 5.4.0-rc1 to 5.4.10. See them all, or every version of this file.