Cascade\Config\Loader\FileLoader\FileLoaderAbstract::validateExtension PHP Method

validateExtension() public method

Validate a file extension against a list of provided valid extensions
public validateExtension ( string $filepath ) : boolean
$filepath string file path of the file we want to check
return boolean Whether or not the extension is valid
    public function validateExtension($filepath)
    {
        return in_array(pathinfo($filepath, PATHINFO_EXTENSION), static::$validExtensions, true);
    }