<?php

namespace Container4MvUhB8;

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

/*
 * @internal This class has been auto-generated by the Symfony Dependency Injection Component.
 */
class getContao_Listener_Menu_BackendLogoutService extends Contao_ManagerBundle_HttpKernel_ContaoKernelProdContainer
{
    /*
     * Gets the private 'contao.listener.menu.backend_logout' shared service.
     *
     * @return \Contao\CoreBundle\EventListener\Menu\BackendLogoutListener
     */
    public static function do($container, $lazyLoad = true)
    {
        include_once \dirname(__DIR__, 4).'/vendor/contao/core-bundle/src/EventListener/Menu/BackendLogoutListener.php';

        $a = ($container->services['security.helper'] ?? $container->getSecurity_HelperService());

        if (isset($container->privates['contao.listener.menu.backend_logout'])) {
            return $container->privates['contao.listener.menu.backend_logout'];
        }
        $b = ($container->services['router'] ?? $container->getRouterService());

        if (isset($container->privates['contao.listener.menu.backend_logout'])) {
            return $container->privates['contao.listener.menu.backend_logout'];
        }
        $c = ($container->services['translator'] ?? $container->getTranslatorService());

        if (isset($container->privates['contao.listener.menu.backend_logout'])) {
            return $container->privates['contao.listener.menu.backend_logout'];
        }

        return $container->privates['contao.listener.menu.backend_logout'] = new \Contao\CoreBundle\EventListener\Menu\BackendLogoutListener($a, $b, ($container->services['security.logout_url_generator'] ?? $container->getSecurity_LogoutUrlGeneratorService()), $c);
    }
}
