<?php

namespace ContainerBnDMNJc;

use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\DependencyInjection\Exception\RuntimeException;

/*
 * @internal This class has been auto-generated by the Symfony Dependency Injection Component.
 */
class getSulu_Repository_PreviewLinkService extends App_KernelProdContainer
{
    /*
     * Gets the public 'sulu.repository.preview_link' shared service.
     *
     * @return \Sulu\Component\Persistence\Repository\ORM\EntityRepository
     */
    public static function do($container, $lazyLoad = true)
    {
        if (true === $lazyLoad) {
            return $container->services['sulu.repository.preview_link'] = $container->createProxy('EntityRepositoryGhostD2c06bb', static fn () => \EntityRepositoryGhostD2c06bb::createLazyGhost(static fn ($proxy) => self::do($container, $proxy)));
        }

        $a = ($container->services['doctrine.orm.default_entity_manager'] ?? self::getDoctrine_Orm_DefaultEntityManagerService($container));

        return ($lazyLoad->__construct($a, $a->getClassMetadata('Sulu\\Bundle\\PreviewBundle\\Domain\\Model\\PreviewLink')) && false ?: $lazyLoad);
    }
}
