first commit

This commit is contained in:
2025-06-17 11:53:18 +02:00
commit 9f0f7ba12b
8804 changed files with 1369176 additions and 0 deletions

View File

@ -0,0 +1,60 @@
<?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;
/**
* Class defining the events available in the console application.
*
* @since 2.0.0
*/
final class ConsoleEvents
{
/**
* The APPLICATION_ERROR event is an event triggered when an uncaught Throwable is received at the main application executor.
*
* This event allows developers to handle the Throwable.
*
* @var string
* @since 2.0.0
*/
public const APPLICATION_ERROR = 'console.application_error';
/**
* The BEFORE_COMMAND_EXECUTE event is an event triggered before a command is executed.
*
* This event allows developers to modify information about the command or the command's
* dependencies prior to the command being executed.
*
* @var string
* @since 2.0.0
*/
public const BEFORE_COMMAND_EXECUTE = 'console.before_command_execute';
/**
* The COMMAND_ERROR event is an event triggered when an uncaught Throwable from a command is received.
*
* This event allows developers to handle the Throwable.
*
* @var string
* @since 2.0.0
*/
public const COMMAND_ERROR = 'console.command_error';
/**
* The TERMINATE event is an event triggered immediately before the application is exited.
*
* This event allows developers to perform any post-process actions and to manipulate
* the process' exit code.
*
* @var string
* @since 2.0.0
*/
public const TERMINATE = 'console.terminate';
}