-
Notifications
You must be signed in to change notification settings - Fork 5
/
AsyncKernelEvents.php
41 lines (36 loc) · 1.01 KB
/
AsyncKernelEvents.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
/*
* This file is part of the DriftPHP Project
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* Feel free to edit as you please, and have fun.
*
* @author Marc Morera <yuhu@mmoreram.com>
*/
declare(strict_types=1);
namespace Drift\HttpKernel;
final class AsyncKernelEvents
{
/**
* The PRELOAD event occurs once the kernel is properly booted and before
* the first request is handled.
*
* This event allows you to load services in the dependency injection, to
* preload clients, and so on.
*
* @Event("Drift\HttpKernel\Event\PreloadEvent")
*/
const PRELOAD = 'kernel.preload';
/**
* The SHUTDOWN event occurs once the kernel is asked to be closed
* gracefully.
*
* This event allows you to flush elements from memory, close connections
* and so on.
*
* @Event("Drift\HttpKernel\Event\ShutdownEvent")
*/
const SHUTDOWN = 'kernel.shutdown';
}