upgraded dependencies
This commit is contained in:
59
vendor/symfony/http-kernel/KernelEvents.php
vendored
59
vendor/symfony/http-kernel/KernelEvents.php
vendored
@@ -11,6 +11,15 @@
|
||||
|
||||
namespace Symfony\Component\HttpKernel;
|
||||
|
||||
use Symfony\Component\HttpKernel\Event\ControllerArgumentsEvent;
|
||||
use Symfony\Component\HttpKernel\Event\ControllerEvent;
|
||||
use Symfony\Component\HttpKernel\Event\ExceptionEvent;
|
||||
use Symfony\Component\HttpKernel\Event\FinishRequestEvent;
|
||||
use Symfony\Component\HttpKernel\Event\RequestEvent;
|
||||
use Symfony\Component\HttpKernel\Event\ResponseEvent;
|
||||
use Symfony\Component\HttpKernel\Event\TerminateEvent;
|
||||
use Symfony\Component\HttpKernel\Event\ViewEvent;
|
||||
|
||||
/**
|
||||
* Contains all events thrown in the HttpKernel component.
|
||||
*
|
||||
@@ -39,17 +48,6 @@ final class KernelEvents
|
||||
*/
|
||||
public const EXCEPTION = 'kernel.exception';
|
||||
|
||||
/**
|
||||
* The VIEW event occurs when the return value of a controller
|
||||
* is not a Response instance.
|
||||
*
|
||||
* This event allows you to create a response for the return value of the
|
||||
* controller.
|
||||
*
|
||||
* @Event("Symfony\Component\HttpKernel\Event\ViewEvent")
|
||||
*/
|
||||
public const VIEW = 'kernel.view';
|
||||
|
||||
/**
|
||||
* The CONTROLLER event occurs once a controller was found for
|
||||
* handling a request.
|
||||
@@ -71,6 +69,17 @@ final class KernelEvents
|
||||
*/
|
||||
public const CONTROLLER_ARGUMENTS = 'kernel.controller_arguments';
|
||||
|
||||
/**
|
||||
* The VIEW event occurs when the return value of a controller
|
||||
* is not a Response instance.
|
||||
*
|
||||
* This event allows you to create a response for the return value of the
|
||||
* controller.
|
||||
*
|
||||
* @Event("Symfony\Component\HttpKernel\Event\ViewEvent")
|
||||
*/
|
||||
public const VIEW = 'kernel.view';
|
||||
|
||||
/**
|
||||
* The RESPONSE event occurs once a response was created for
|
||||
* replying to a request.
|
||||
@@ -82,6 +91,16 @@ final class KernelEvents
|
||||
*/
|
||||
public const RESPONSE = 'kernel.response';
|
||||
|
||||
/**
|
||||
* The FINISH_REQUEST event occurs when a response was generated for a request.
|
||||
*
|
||||
* This event allows you to reset the global and environmental state of
|
||||
* the application, when it was changed during the request.
|
||||
*
|
||||
* @Event("Symfony\Component\HttpKernel\Event\FinishRequestEvent")
|
||||
*/
|
||||
public const FINISH_REQUEST = 'kernel.finish_request';
|
||||
|
||||
/**
|
||||
* The TERMINATE event occurs once a response was sent.
|
||||
*
|
||||
@@ -92,12 +111,18 @@ final class KernelEvents
|
||||
public const TERMINATE = 'kernel.terminate';
|
||||
|
||||
/**
|
||||
* The FINISH_REQUEST event occurs when a response was generated for a request.
|
||||
* Event aliases.
|
||||
*
|
||||
* This event allows you to reset the global and environmental state of
|
||||
* the application, when it was changed during the request.
|
||||
*
|
||||
* @Event("Symfony\Component\HttpKernel\Event\FinishRequestEvent")
|
||||
* These aliases can be consumed by RegisterListenersPass.
|
||||
*/
|
||||
public const FINISH_REQUEST = 'kernel.finish_request';
|
||||
public const ALIASES = [
|
||||
ControllerArgumentsEvent::class => self::CONTROLLER_ARGUMENTS,
|
||||
ControllerEvent::class => self::CONTROLLER,
|
||||
ResponseEvent::class => self::RESPONSE,
|
||||
FinishRequestEvent::class => self::FINISH_REQUEST,
|
||||
RequestEvent::class => self::REQUEST,
|
||||
ViewEvent::class => self::VIEW,
|
||||
ExceptionEvent::class => self::EXCEPTION,
|
||||
TerminateEvent::class => self::TERMINATE,
|
||||
];
|
||||
}
|
||||
|
Reference in New Issue
Block a user