Asf_Applicaton


Introduction

Asf_Application 往往在入口文件处声明, 负责 HTTP Request、Response 全程应用协调

在开启命名空间情况下(asf.use_namespace=1)类名为 Asf\Application

Class synopsis

<?php
final class Asf_Application
{
    public Asf_Application __construct(mixed $config [, string $section = ''])
    public Asf_Application init(mixed $config [, string $section = ''])
    public Asf_Application bootstrap(void)
    public Asf_Application constants(void)
    public static Asf_Application getInstance(void)
    public Asf_Config getConfig(void)
    public bool run(void)
    public bool task(void)
    public bool setLogErrFileName(string $filename)
    public array getModules(void)
    public string getRootPath(void)
    public string getEnv(void)
    public string getMode(void)
    public bool setErrorHandler(callable $error_handler)
    public bool setTimeoutHandler(callable $timeout_handler)
}

Link