Asf_Application::bootstrap

bootstrap 初始化操作


Description

public Asf_Application Asf_Application::bootstrap(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()
    {
    }
}

class Bootstrap
{
    public function _initOne()
    {
        echo '_initOne', PHP_EOL;
    }


    public function _initTwo()
    {
        echo '_initTwo', PHP_EOL;
    }
}

$handle = new Asf_Application($configs);
$handle->bootstrap()->run();