PPI\Framework\Config\Loader\YamlFileLoader::supports PHP Метод

supports() публичный Метод

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
Результат 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);
    }