Asf_Application::getInstance

获取当前 Asf_Application 实例


Description

public static Asf_Application Asf_Application::getInstance(void)

Parameters

此函数没有参数

Return Values

返回一个对象 Asf_Application object

Examples

Example #1

<?php
$configs = array(
    'asf' => array(
        'root_path'  => realpath(dirname(__FILE__)),
    )
);

class IndexService
{
    public function indexAction()
    {
    }
}

$handle = new Asf_Application($configs);
$handle->run();
print_r(Asf_Application::getInstance());