php-pm/httpkernel-adapter

PHP-PM 的 Symfony HTTPKernel 适配器。

2.3.1 2022-12-01 19:38 UTC

This package is auto-updated.

Last update: 2024-08-28 22:59:36 UTC


README

用于使用 PHP-PM 的 Symfony 和 Laravel 框架的 HttpKernel 适配器。请参阅 https://github.com/php-pm/php-pm

设置

  1. 安装 PHP-PM

     composer require php-pm/php-pm
    
  2. 安装 HttpKernel 适配器

     composer require php-pm/httpkernel-adapter
    
  3. 可选:使用 APP_KERNEL_NAMESPACE 环境变量提供您的 Kernel 命名空间。例如:APP_KERNEL_NAMESPACE=Acme\MyProduct\。这将尝试使用类 Acme\MyProduct\Kernel 作为完全限定的类名

注意:对于 Symfony,请确保您的 AppKernel 已在您的 composer.json 中自动加载(2015 年 11 月之后使用标准版创建的项目不应有问题)

{
    "autoload": {
        "classmap": ["app/AppKernel.php"]
    }
}