protected function createConnection(Manager $manager)
    {
        return Connection::create($this->getName())
            ->setConnectionType(function () use ($manager) {
                return $this->getType($manager);
            })
            ->setConnectionResolver($this->createResolverFunction())
            ->setArgs($this->createArgs($manager))
            ->setSortableFields($this->getSortableFields())
            ->setDefaultLimit($this->getPaginationLimit())
            ->setMaximumLimit($this->getMaximumPaginationLimit());
    }
protected function createConnection(Manager $manager)
    {
        return Connection::create($this->getName())
            ->setConnectionType(function () use ($manager) {
                return $this->getType($manager);
            })
            ->setConnectionResolver($this->createResolverFunction())
            ->setArgs($this->createArgs($manager))
            ->setSortableFields($this->getSortableFields())
            ->setDefaultLimit($this->getPaginationLimit())
            ->setMaximumLimit($this->getMaximumPaginationLimit());
    }
protected function createConnection ( Manager $ manager ) { return Connection :: create ( $ this -> getName ( ) ) -> setConnectionType ( function ( ) use ( $ manager ) { return $ this -> getType ( $ manager ) ; } ) -> setConnectionResolver ( $ this -> createResolverFunction ( ) ) -> setArgs ( $ this -> createArgs ( $ manager ) ) -> setSortableFields ( $ this -> getSortableFields ( ) ) -> setDefaultLimit ( $ this -> getPaginationLimit ( ) ) -> setMaximumLimit ( $ this -> getMaximumPaginationLimit ( ) ) ; }
Creates a Connection for pagination.

@param Manager $manager
@return Connection
Creates a Connection for pagination .