PPI\Framework\Config\Loader\YamlFileLoader::supports PHP Method

supports() public method

Returns true if this class supports the given resource.
public supports ( mixed $resource, string $type = null ) : boolean
$resource mixed A resource
$type string The resource type
return boolean true if this class supports the given resource, false otherwise
    public function supports($resource, $type = null)
    {
        return is_string($resource) && 'yml' === pathinfo($resource, PATHINFO_EXTENSION);
    }