src/Theme.php
protected function evaluateConfig($config)
    {
        if (! isset($config['themes'][$this->theme])) {
            return $config;
        }

        // Config inside a public theme.
        $minorConfig = $config['themes'][$this->theme];

        // Before event is special case, It's combination.
        if (isset($minorConfig['events']['before'])) {
            $minorConfig['events']['appendBefore'] = $minorConfig['events']['before'];
            unset($minorConfig['events']['before']);
        }

        // Merge two config into one.
        $config = array_replace_recursive($config, $minorConfig);

        // Reset theme config.
        $config['themes'][$this->theme] = array();

        return $config;
    }
protected function evaluateConfig($config)
    {
        if (! isset($config['themes'][$this->theme])) {
            return $config;
        }

        // Config inside a public theme.
        $minorConfig = $config['themes'][$this->theme];

        // Before event is special case, It's combination.
        if (isset($minorConfig['events']['before'])) {
            $minorConfig['events']['appendBefore'] = $minorConfig['events']['before'];
            unset($minorConfig['events']['before']);
        }

        // Merge two config into one.
        $config = array_replace_recursive($config, $minorConfig);

        // Reset theme config.
        $config['themes'][$this->theme] = array();

        return $config;
    }
protected function evaluateConfig ( $ config ) { if ( ! isset ( $ config [ 'themes' ] [ $ this -> theme ] ) ) { return $ config ; } // Config inside a public theme. $ minorConfig = $ config [ 'themes' ] [ $ this -> theme ] ; // Before event is special case, It's combination. if ( isset ( $ minorConfig [ 'events' ] [ 'before' ] ) ) { $ minorConfig [ 'events' ] [ 'appendBefore' ] = $ minorConfig [ 'events' ] [ 'before' ] ; unset ( $ minorConfig [ 'events' ] [ 'before' ] ) ; } // Merge two config into one. $ config = array_replace_recursive ( $ config , $ minorConfig ) ; // Reset theme config. $ config [ 'themes' ] [ $ this -> theme ] = array ( ) ; return $ config ; }
Evaluate config.

Config minor is at public folder [theme]/config.php,
thet can be override package config.

@param  mixed $config
@return mixed
Evaluate config .