php-fpm 模式下的启动入口, 它是单例模式运行的
支持多模块下应用
通常在web应用中使用
public bool Asf_Application::run(void)
此函数没有参数
true 代表成功, false 代表失败
<?php
$configs = array(
'asf' => array(
'root_path' => MODULE_PATH,
)
);
$handle = new Asf_Application($configs);
$handle->run();
<?php
$configs = array(
'asf' => array(
'root_path' => MODULE_PATH,
)
);
$handle = new Asf_Application($configs);
$handle->bootstrap()->run();
<?php
$configs = array(
'asf' => array(
'root_path' => MODULE_PATH,
)
);
$handle = new Asf_Application($configs);
$handle->constants()->bootstrap()->run();