aatis/kernel

There is no license information available for the latest version (1.4.0) of this package.

Kernel of Aatis

1.4.0 2024-11-06 20:23 UTC

This package is auto-updated.

Last update: 2024-11-09 13:17:01 UTC


README

Advertisement

This package is a part of Aatis and can't be used without the following packages :

Installation

composer require aatis/kernel

Usage

Requirements

Initialize Aatis packages (see the README of each package)

Basic usage

If needed, create a kernel class and extend the Aatis Kernel :

use Aatis\Kernel as BaseKernel;

class Kernel extends BaseKernel
{
    public function handle(Request $request): void
    {
        // extra process
        parent::handle($request);
        // extra process
    }
}

Or use it directly :

$request = Request::createFromGlobals();
(new Kernel())->handle($request);