src/Behat/Gherkin/Gherkin.php
public function resolveLoader($resource)
    {
        foreach ($this->loaders as $loader) {
            if ($loader->supports($resource)) {
                return $loader;
            }
        }

        return null;
    }
public function resolveLoader($resource)
    {
        foreach ($this->loaders as $loader) {
            if ($loader->supports($resource)) {
                return $loader;
            }
        }

        return null;
    }
public function resolveLoader ( $ resource ) { foreach ( $ this -> loaders as $ loader ) { if ( $ loader -> supports ( $ resource ) ) { return $ loader ; } } return null ; }
Resolves loader by resource.

@param mixed $resource Resource to load

@return LoaderInterface
Resolves loader by resource .