public function createDriver($options = [])
    {
        $options = $this->optionsResolver->resolve($options);

        return new CollectionDriver($this->extensions, $options['collection'], $options['criteria']);
    }
public function createDriver($options = [])
    {
        $options = $this->optionsResolver->resolve($options);

        return new CollectionDriver($this->extensions, $options['collection'], $options['criteria']);
    }
public function createDriver ( $ options = [ ] ) { $ options = $ this -> optionsResolver -> resolve ( $ options ) ; return new CollectionDriver ( $ this -> extensions , $ options [ 'collection' ] , $ options [ 'criteria' ] ) ; }
Creates driver.

@param array $options
@return \FSi\Component\DataSource\Driver\Collection\CollectionDriver
Creates driver .