public function load()
    {
        $file = new File($this->filePath);
        $fileExt = $file->getExtension();
        $fileConfClass = $this->getConfigFileClass($fileExt);
        if (class_exists($fileConfClass)) {
            $fileConf = new $fileConfClass($file);

            return $fileConf;
        }

        throw new ConfNotSupportedException($this->filePath);
    }
public function load()
    {
        $file = new File($this->filePath);
        $fileExt = $file->getExtension();
        $fileConfClass = $this->getConfigFileClass($fileExt);
        if (class_exists($fileConfClass)) {
            $fileConf = new $fileConfClass($file);

            return $fileConf;
        }

        throw new ConfNotSupportedException($this->filePath);
    }
public function load ( ) { $ file = new File ( $ this -> filePath ) ; $ fileExt = $ file -> getExtension ( ) ; $ fileConfClass = $ this -> getConfigFileClass ( $ fileExt ) ; if ( class_exists ( $ fileConfClass ) ) { $ fileConf = new $ fileConfClass ( $ file ) ; return $ fileConf ; } throw new ConfNotSupportedException ( $ this -> filePath ) ; }
Finds and returns the file if exists

@return Fakerino\Configuration\ConfigurationInterface
@throws ConfNotSupportedException
Finds and returns the file if exists