corneltek/phifty-core

安装: 185

依赖项: 0

建议者: 0

安全: 0

星星: 9

关注者: 4

分支: 3

类型:phifty-framework

4.0.0 2022-08-14 11:13 UTC

This package is not auto-updated.

Last update: 2024-09-22 21:05:43 UTC


README

Build Status Coverage Status

Latest Stable Version Total Downloads Latest Unstable Version License

Monthly Downloads Daily Downloads

文档

查看 wiki

结构概述

Phifty\App (is a Bundle)
  Phifty\Kernel(

    /* Core service providers */
    "event" => EventServiceProvider,
    "config" => ConfigServiceProvider,

    /* Extra service providers */
    [services] => Array Phifty\ServiceProvider[string]

    "bundles" => BundleServiceProvider(
      Array Phifty\Bundle[string]
    )
  )

引导流程

  1. 创建生成的 App\ConfigLoader 对象。
  2. 创建生成的 App\Kernel 对象
    1. 将服务提供者加载到 $kernel
    2. 将捆绑包加载到 $kernel
  3. 使用 App($kernel) 创建 App\App 实例
  4. 调用 App::boot() 方法启动应用。
    1. 调用 Kernel::boot 启动服务提供者和捆绑包。
      1. 对所有服务提供者运行 ::boot
      2. 对所有捆绑包运行 ::boot
    2. 运行 App 启动代码。