src/Persister/PagerPersisterRegistry.php
public function getPagerPersister($name)
    {
        if (!isset($this->nameToServiceIdMap[$name])) {
            throw new \InvalidArgumentException(sprintf('No pager persister was registered for the give name "%s".', $name));
        }

        $serviceId = $this->nameToServiceIdMap[$name];

        $pagerPersister = $this->container->get($serviceId);

        if (!$pagerPersister instanceof PagerPersisterInterface) {
            throw new \LogicException(sprintf(
                'The pager provider service "%s" must implement "%s" interface but it is an instance of "%s" class.',
                $serviceId,
                PagerPersisterInterface::class,
                get_class($pagerPersister)
            ));
        }

        return $pagerPersister;
    }
public function getPagerPersister($name)
    {
        if (!isset($this->nameToServiceIdMap[$name])) {
            throw new \InvalidArgumentException(sprintf('No pager persister was registered for the give name "%s".', $name));
        }

        $serviceId = $this->nameToServiceIdMap[$name];

        $pagerPersister = $this->container->get($serviceId);

        if (!$pagerPersister instanceof PagerPersisterInterface) {
            throw new \LogicException(sprintf(
                'The pager provider service "%s" must implement "%s" interface but it is an instance of "%s" class.',
                $serviceId,
                PagerPersisterInterface::class,
                get_class($pagerPersister)
            ));
        }

        return $pagerPersister;
    }
@param string $name

@throws \InvalidArgumentException if no pager persister was registered for the given name

@return PagerPersisterInterface