<?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 getSuluWebsite_RedirectExceptionListenerService extends App_KernelProdContainer
{
    /*
     * Gets the private 'sulu_website.redirect_exception_listener' shared service.
     *
     * @return \Sulu\Bundle\WebsiteBundle\EventListener\RedirectExceptionSubscriber
     */
    public static function do($container, $lazyLoad = true)
    {
        $a = ($container->services['router'] ?? self::getRouterService($container));

        if (isset($container->privates['sulu_website.redirect_exception_listener'])) {
            return $container->privates['sulu_website.redirect_exception_listener'];
        }
        $b = ($container->services['sulu_core.webspace.request_analyzer'] ?? self::getSuluCore_Webspace_RequestAnalyzerService($container));

        if (isset($container->privates['sulu_website.redirect_exception_listener'])) {
            return $container->privates['sulu_website.redirect_exception_listener'];
        }

        return $container->privates['sulu_website.redirect_exception_listener'] = new \Sulu\Bundle\WebsiteBundle\EventListener\RedirectExceptionSubscriber($a, $b, new \Sulu\Bundle\WebsiteBundle\Locale\PortalDefaultLocaleProvider($b), ($container->privates['sulu_core.webspace.webspace_manager.url_replacer'] ??= new \Sulu\Component\Webspace\Url\Replacer()));
    }
}
