protected function loadJoins($currentFile, &$config, $data)
    {
        if (empty($config['joins']) || !is_array($config['joins'])) {
            $config['joins'] = array();

            return $this;
        }

        foreach ($config['joins'] as $joinName => &$joinConfig) {

            $filename = $currentFile;
            if (isset($joinConfig['file']) && 'this' !== $joinConfig['file']) {
                $filename = str_replace('EKA_ROOT', EKA_ROOT, $joinConfig['file']);
                $yaml     = new Yaml();
                $data     = $yaml->load($filename);
            }

            $joinConfig['class'] = $this->findConfigs($filename, $data, $joinName);
        }

        return $this;
    }
protected function loadJoins($currentFile, &$config, $data)
    {
        if (empty($config['joins']) || !is_array($config['joins'])) {
            $config['joins'] = array();

            return $this;
        }

        foreach ($config['joins'] as $joinName => &$joinConfig) {

            $filename = $currentFile;
            if (isset($joinConfig['file']) && 'this' !== $joinConfig['file']) {
                $filename = str_replace('EKA_ROOT', EKA_ROOT, $joinConfig['file']);
                $yaml     = new Yaml();
                $data     = $yaml->load($filename);
            }

            $joinConfig['class'] = $this->findConfigs($filename, $data, $joinName);
        }

        return $this;
    }
protected function loadJoins ( $ currentFile , & $ config , $ data ) { if ( empty ( $ config [ 'joins' ] ) || ! is_array ( $ config [ 'joins' ] ) ) { $ config [ 'joins' ] = array ( ) ; return $ this ; } foreach ( $ config [ 'joins' ] as $ joinName => & $ joinConfig ) { $ filename = $ currentFile ; if ( isset ( $ joinConfig [ 'file' ] ) && 'this' !== $ joinConfig [ 'file' ] ) { $ filename = str_replace ( 'EKA_ROOT' , EKA_ROOT , $ joinConfig [ 'file' ] ) ; $ yaml = new Yaml ( ) ; $ data = $ yaml -> load ( $ filename ) ; } $ joinConfig [ 'class' ] = $ this -> findConfigs ( $ filename , $ data , $ joinName ) ; } return $ this ; }
Load joined configs.

@param  string $currentFile
@param  array  $config Current config
@param  array  $data Global current config data
@return self
Load joined configs .