Cascade\Config\Loader\FileLoader\Json::supports PHP Method

supports() public method

Return whether or not the passed in resrouce is supported by this loader
public supports ( string $resource, string $type = null ) : boolean
$resource string Plain string or filepath
$type string Not used
return boolean Whether or not the passed in resource is supported by this loader
    public function supports($resource, $type = null)
    {
        if (is_string($resource)) {
            if ($this->isFile($resource)) {
                return $this->validateExtension($resource);
            } else {
                return $this->isJson($resource);
            }
        }
        return false;
    }