获取当前 Asf_Application 实例
public static Asf_Application Asf_Application::getInstance(void)
此函数没有参数
返回一个对象 Asf_Application object
<?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());