public Asf_Config Asf_Application::getConfig(void)
此函数没有参数
获取一个 Asf_Config 对象的配置信息
<?php $configs = array( 'asf' => array( 'root_path' => realpath(dirname(__FILE__)), 'boostrap' => realpath(dirname(__FILE__)) . '/Bootstrap.php', 'modules' => 'admin,index,api,rpc,main', 'dispatcher' => array( 'default_module' => 'main', 'default_service' => 'main', 'default_action' => 'main', 'default_route' => 'query', ) ) ); class MainService { public function mainAction() { } } $handle = new Asf_Application($configs); $handle->run(); var_dump($handle->getConfig()); print_r($handle->getConfig()->get('asf')->get('dispatcher')); print_r($handle->getConfig()->asf->dispatcher); var_dump($handle->getConfig()->get('asf')->get('root_path')); var_dump($handle->getConfig()->asf->root_path);