bootstrap 初始化操作
public Asf_Application Asf_Application::bootstrap(void)
此函数没有参数
返回一个对象 Asf_Application object
<?php $configs = array( 'asf' => array( 'root_path' => realpath(dirname(__FILE__)), ) ); class IndexService { public function indexAction() { } } class Bootstrap { public function _initOne() { echo '_initOne', PHP_EOL; } public function _initTwo() { echo '_initTwo', PHP_EOL; } } $handle = new Asf_Application($configs); $handle->bootstrap()->run();