src/Search/Framework/Indexer.php
public function newCollector()
    {
        $collector = new Collector($this->getDispatcher());

        // Pass services and settings to collector.
        $collector
            ->setCollections($this->_collections)
            ->setLogger($this->getLogger())
            ->setQueue($this->getQueue())
            ->setTimeout($this->_timeout)
            ->setLimit($this->_limit);

        return $collector;
    }
public function newCollector()
    {
        $collector = new Collector($this->getDispatcher());

        // Pass services and settings to collector.
        $collector
            ->setCollections($this->_collections)
            ->setLogger($this->getLogger())
            ->setQueue($this->getQueue())
            ->setTimeout($this->_timeout)
            ->setLimit($this->_limit);

        return $collector;
    }
public function newCollector ( ) { $ collector = new Collector ( $ this -> getDispatcher ( ) ) ; // Pass services and settings to collector. $ collector -> setCollections ( $ this -> _collections ) -> setLogger ( $ this -> getLogger ( ) ) -> setQueue ( $ this -> getQueue ( ) ) -> setTimeout ( $ this -> _timeout ) -> setLimit ( $ this -> _limit ) ; return $ collector ; }
Returns a Collector object that the Indexer class injects itself as a
service into.

@return Collector
Returns a Collector object that the Indexer class injects itself as a service into .