public function create(string $rootPath, string $configFilePath): ConfigBagInterface
    {
        $file = $this->resolvePath($rootPath, $configFilePath);

        $envs = $this->parseMainFile($file);
        $envs = $this->mergeExternalFiles($file, $envs);

        return ConfigBag::root(
            $envs,
            $this->getEnvironment(),
            $rootPath
        );
    }
public function create(string $rootPath, string $configFilePath): ConfigBagInterface
    {
        $file = $this->resolvePath($rootPath, $configFilePath);

        $envs = $this->parseMainFile($file);
        $envs = $this->mergeExternalFiles($file, $envs);

        return ConfigBag::root(
            $envs,
            $this->getEnvironment(),
            $rootPath
        );
    }
public function create ( string $ rootPath , string $ configFilePath ) : ConfigBagInterface { $ file = $ this -> resolvePath ( $ rootPath , $ configFilePath ) ; $ envs = $ this -> parseMainFile ( $ file ) ; $ envs = $ this -> mergeExternalFiles ( $ file , $ envs ) ; return ConfigBag :: root ( $ envs , $ this -> getEnvironment ( ) , $ rootPath ) ; }
Create a ConfigBag.

@param string $rootPath
@param string $configFilePath

@return ConfigBagInterface
Create a ConfigBag .