aatis/kernel

此软件包最新版本(1.3.0)没有可用的许可信息。

Aatis 内核

1.3.0 2024-02-14 13:31 UTC

This package is auto-updated.

Last update: 2024-09-14 14:47:51 UTC


README

安装

composer require aatis/kernel

使用

需求

首先,通知路由类

# In config/services.yaml file :

include_services:
    - 'Aatis\Routing\Service\Router'

然后,创建您的内核类并扩展 Aatis Kernel

use Aatis\Kernel as BaseKernel;

class YourKernel extends BaseKernel
{
    public function handle(): void
    {
        // Your extra stuff
        parent::handle();
        // Your extra stuff
    }
}

或者在代码中直接使用它

(new Kernel())->handle();