aubry/symfony-kernel-event-listener

该软件包最新版本(v1.0.0)没有提供许可信息。

定义了 Symfony 可标记内核事件监听器的接口。

v1.0.0 2018-10-11 09:01 UTC

This package is not auto-updated.

Last update: 2024-09-21 18:46:05 UTC


README

为在 Symfony 中实现默认内核事件监听器提供基本接口。

参见: https://symfony.com.cn/doc/4.0/components/http_kernel.html

示例

实现 KernelRequestListenerInterface 以准备处理 kernel.request 事件

<?php

namespace _____;

use Aubry\SymfonyKernelEventListener\KernelRequestListenerInterface;
use Symfony\Component\HttpKernel\Event\GetResponseEvent;

class _____Listener 
{
    /**
     * @param GetResponseEvent $event
     */
    public function onKernelRequest(GetResponseEvent $event): void
    {
        // Implement desired behaviour here.
    }
}

待办事项

  • 实现基本依赖项检查