src/Viserio/Component/Pagination/Paginator.php
public function render(?string $view = null): string
    {
        if ($this->viewFactory !== null && ! isset($this->presenters[$view])) {
            return (string) $this->viewFactory->create($view, ['paginator' => $this]);
        }

        if (isset($this->presenters[$view])) {
            return (new $this->presenters[$view]($this))->render();
        }

        return (new $this->presenters[$this->getDefaultPresenter()]($this))->render();
    }
public function render(?string $view = null): string
    {
        if ($this->viewFactory !== null && ! isset($this->presenters[$view])) {
            return (string) $this->viewFactory->create($view, ['paginator' => $this]);
        }

        if (isset($this->presenters[$view])) {
            return (new $this->presenters[$view]($this))->render();
        }

        return (new $this->presenters[$this->getDefaultPresenter()]($this))->render();
    }
{@inheritdoc}