src/Panda/Support/Configuration/Parsers/PhpParser.php
private function getConfigFile($configFile, $environment = 'default')
    {
        // Normalize config file
        $configFile = $configFile ?: 'config';

        // Check if there is an environment-specific config file
        $envConfigFile = $this->app->getConfigPath() . DIRECTORY_SEPARATOR . $configFile . '-' . $environment . '.php';
        if (!is_file($envConfigFile)) {
            $envConfigFile = $this->app->getConfigPath() . DIRECTORY_SEPARATOR . $configFile . '.php';
        }

        return $envConfigFile;
    }
private function getConfigFile($configFile, $environment = 'default')
    {
        // Normalize config file
        $configFile = $configFile ?: 'config';

        // Check if there is an environment-specific config file
        $envConfigFile = $this->app->getConfigPath() . DIRECTORY_SEPARATOR . $configFile . '-' . $environment . '.php';
        if (!is_file($envConfigFile)) {
            $envConfigFile = $this->app->getConfigPath() . DIRECTORY_SEPARATOR . $configFile . '.php';
        }

        return $envConfigFile;
    }
private function getConfigFile ( $ configFile , $ environment = 'default' ) { // Normalize config file $ configFile = $ configFile ? : 'config' ; // Check if there is an environment-specific config file $ envConfigFile = $ this -> app -> getConfigPath ( ) . DIRECTORY_SEPARATOR . $ configFile . '-' . $ environment . '.php' ; if ( ! is_file ( $ envConfigFile ) ) { $ envConfigFile = $ this -> app -> getConfigPath ( ) . DIRECTORY_SEPARATOR . $ configFile . '.php' ; } return $ envConfigFile ; }
Get the configuration file according to the given environment, if any.

@param string $configFile
@param string $environment

@return string
Get the configuration file according to the given environment if any .