Cascade\Config\Loader\FileLoader\FileLoaderAbstract::validateExtension PHP 메소드

validateExtension() 공개 메소드

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
리턴 boolean Whether or not the extension is valid
    public function validateExtension($filepath)
    {
        return in_array(pathinfo($filepath, PATHINFO_EXTENSION), static::$validExtensions, true);
    }