lib/Collection/Result/CollectionRunnerFactory.php
public function getCollectionRunner(Collection $collection, int $flags = 0): CollectionRunnerInterface
    {
        $collectionQuery = $collection->getQuery();

        if ($collectionQuery instanceof Query) {
            $queryRunner = $this->getQueryRunner($collectionQuery, $flags);

            return new DynamicCollectionRunner($queryRunner, $this->visibilityResolver);
        }

        return new ManualCollectionRunner($this->visibilityResolver);
    }
public function getCollectionRunner(Collection $collection, int $flags = 0): CollectionRunnerInterface
    {
        $collectionQuery = $collection->getQuery();

        if ($collectionQuery instanceof Query) {
            $queryRunner = $this->getQueryRunner($collectionQuery, $flags);

            return new DynamicCollectionRunner($queryRunner, $this->visibilityResolver);
        }

        return new ManualCollectionRunner($this->visibilityResolver);
    }
public function getCollectionRunner ( Collection $ collection , int $ flags = 0 ) : CollectionRunnerInterface { $ collectionQuery = $ collection -> getQuery ( ) ; if ( $ collectionQuery instanceof Query ) { $ queryRunner = $ this -> getQueryRunner ( $ collectionQuery , $ flags ) ; return new DynamicCollectionRunner ( $ queryRunner , $ this -> visibilityResolver ) ; } return new ManualCollectionRunner ( $ this -> visibilityResolver ) ; }
Builds and returns the collection runner for provided collection.
Builds and returns the collection runner for provided collection .