GoLang Yaf_Application::getConfig

request it (351)
GoLang replacement for PHP's Yaf_Application::getConfig [edit | history]



Do you know a GoLang replacement for PHP's Yaf_Application::getConfig? Write it!

PHP Yaf_Application::getConfig

PHP original manual for Yaf_Application::getConfig [ show | php.net ]

Yaf_Application::getConfig

(Yaf >=1.0.0)

Yaf_Application::getConfigRetrive the config instance

Description

public Yaf_Config_Abstract Yaf_Application::getConfig ( void )

Parameters

This function has no parameters.

Return Values

A Yaf_Config_Abstract instance

Examples

Example #1 Yaf_Application::getConfig()example

<?php
$config 
= array(
    
"application" => array(
        
"directory" => realpath(dirname(__FILE__)) . "/application",
    ),
);

/** Yaf_Application */
$application = new Yaf_Application($config);
print_r($application->getConfig());
?>

The above example will output something similar to:

Yaf_Config_Simple Object
(
    [_config:protected] => Array
        (
            [application] => Array
                (
                    [directory] => /home/laruence/local/www/htdocs/application
                )

        )

    [_readonly:protected] => 1
)