框架入口类
- 自从
- 3.0
@method static Framework getInstance()
◆ __construct()
◆ bootstrap()
| bootstrap |
( |
?string |
$bootstrapper = null | ) |
|
执行初始化的函数列表
- 参数
-
| null | string | $bootstrapper | 要运行的 bootstrapper |
◆ getArgv()
◆ getDriver()
◆ init()
初始化框架
- 参数
-
| array<string,null|bool|string> | $argv 传入的参数(见 ServerStartCommand) |
- 异常
-
Exception
◆ initDriver()
◆ initFramework()
初始化框架并输出一些信息
绑定、注册框架本身的事件到 Driver 的 EventProvider 中
◆ reload()
重载框架的 worker 进程,重新加载模块及代码
此方法仅限于 Unix 环境下的多进程模式(即存在 Worker 进程的模式)使用,Windows 环境、单进程模式使用无效
未测试,需要对单进程等特殊情况做判断,因为单进程等模式无法重启
◆ start()
◆ stop()
◆ $argv
◆ $bootstrappers
初始值:= [
Bootstrap\LoadConfiguration::class,
Bootstrap\LoadGlobalDefines::class,
Bootstrap\RegisterLogger::class,
Bootstrap\HandleExceptions::class,
Bootstrap\RegisterEventProvider::class,
Bootstrap\SetInternalTimezone::class,
]
◆ $driver
| SwooleDriver Driver WorkermanDriver null $driver = null |
|
protected |
◆ $runtime_preferences
◆ $setup_annotations
| array $setup_annotations = [] |
|
protected |
◆ VERSION
◆ VERSION_ID
该类的文档由以下文件生成: