Micro-PHP /
micro-kernel-app
| 1 | <?php |
||
| 2 | |||
| 3 | /* |
||
| 4 | * This file is part of the Micro framework package. |
||
| 5 | * |
||
| 6 | * (c) Stanislau Komar <[email protected]> |
||
| 7 | * |
||
| 8 | * For the full copyright and license information, please view the LICENSE |
||
| 9 | * file that was distributed with this source code. |
||
| 10 | */ |
||
| 11 | |||
| 12 | namespace Micro\Kernel\App\Business\Event; |
||
| 13 | |||
| 14 | use Micro\Kernel\App\AppKernelInterface; |
||
| 15 | |||
| 16 | readonly class ApplicationReadyEvent implements ApplicationReadyEventInterface |
||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 17 | { |
||
| 18 | 11 | public function __construct(private AppKernelInterface $appKernel, private string $environment) |
|
| 19 | { |
||
| 20 | 11 | } |
|
| 21 | |||
| 22 | 1 | public function kernel(): AppKernelInterface |
|
| 23 | { |
||
| 24 | 1 | return $this->appKernel; |
|
| 25 | } |
||
| 26 | |||
| 27 | 1 | public function environment(): string |
|
| 28 | { |
||
| 29 | 1 | return $this->environment; |
|
| 30 | } |
||
| 31 | |||
| 32 | 1 | public function systemEnvironment(): string |
|
| 33 | { |
||
| 34 | 1 | return \PHP_SAPI; |
|
| 35 | } |
||
| 36 | } |
||
| 37 |