private function readFile($name, $folder = null){
        $realConfig= NULL;
        $folder != null ?: $folder= $this->pathApp . $this->configurationFolder;
        if($this->configurationType == 'YAML'){
            $realConfig = \Spyc::YAMLLoad($folder . $name . '.yml');            
        }else if($this->configurationType == 'PHP'){
            include $folder . $name . '.php';
            //La variable $config la define cada archivo incluido
            $realConfig= $config;
        }else{
            $realConfig= json_decode(file_get_contents($folder . $name . '.json'), true);  
        }
        return $realConfig;
    }