private function assembleEnvironmentFilePath($filePath, $environment = true)
    {
        if (true === $environment) {
            $environment = $this->environmentInstance->getEnvironment();
        }
        $directories = explode('/', $filePath);
        $fileName = array_pop($directories);
        $fileNameWithoutExtension = $this->extractFileNameBase($filePath);
        array_push($directories, $this->environmentSubdirectoryName, $environment, $fileNameWithoutExtension);
        $result = implode('/', $directories);
        return $result;
    }
private function assembleEnvironmentFilePath($filePath, $environment = true)
    {
        if (true === $environment) {
            $environment = $this->environmentInstance->getEnvironment();
        }
        $directories = explode('/', $filePath);
        $fileName = array_pop($directories);
        $fileNameWithoutExtension = $this->extractFileNameBase($filePath);
        array_push($directories, $this->environmentSubdirectoryName, $environment, $fileNameWithoutExtension);
        $result = implode('/', $directories);
        return $result;
    }
private function assembleEnvironmentFilePath ( $ filePath , $ environment = true ) { if ( true === $ environment ) { $ environment = $ this -> environmentInstance -> getEnvironment ( ) ; } $ directories = explode ( '/' , $ filePath ) ; $ fileName = array_pop ( $ directories ) ; $ fileNameWithoutExtension = $ this -> extractFileNameBase ( $ filePath ) ; array_push ( $ directories , $ this -> environmentSubdirectoryName , $ environment , $ fileNameWithoutExtension ) ; $ result = implode ( '/' , $ directories ) ; return $ result ; }
Assemble path to configuration file with environment taken into account

@param string $filePath Path to configuration file for all environments
@param string|bool $environment Environment name, true for predefined for Config object (usually the current one)
@return string
Assemble path to configuration file with environment taken into account