<?php

namespace ContainerEKZIeE8;

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 getMassiveSearch_SearchManagerService extends App_KernelProdContainer
{
    /*
     * Gets the public 'massive_search.search_manager' shared service.
     *
     * @return \Massive\Bundle\SearchBundle\Search\SearchManager
     */
    public static function do($container, $lazyLoad = true)
    {
        $a = ($container->privates['sulu_document_manager.metadata_factory'] ?? self::getSuluDocumentManager_MetadataFactoryService($container));

        if (isset($container->services['massive_search.search_manager'])) {
            return $container->services['massive_search.search_manager'];
        }
        $b = ($container->services['event_dispatcher'] ?? self::getEventDispatcherService($container));

        if (isset($container->services['massive_search.search_manager'])) {
            return $container->services['massive_search.search_manager'];
        }
        $c = ($container->privates['massive_search.object_to_document_converter'] ?? $container->load('getMassiveSearch_ObjectToDocumentConverterService'));

        if (isset($container->services['massive_search.search_manager'])) {
            return $container->services['massive_search.search_manager'];
        }

        return $container->services['massive_search.search_manager'] = new \Massive\Bundle\SearchBundle\Search\SearchManager(($container->services['massive_search.adapter.zend_lucene'] ?? $container->load('getMassiveSearch_Adapter_ZendLuceneService')), new \Massive\Bundle\SearchBundle\Search\Metadata\Provider\ChainProvider([new \Massive\Bundle\SearchBundle\Search\Metadata\Provider\DefaultProvider(($container->privates['massive_search.metadata.factory'] ?? $container->load('getMassiveSearch_Metadata_FactoryService'))), new \Sulu\Bundle\PageBundle\Search\Metadata\StructureProvider(($container->privates['sulu_search.search.factory'] ??= new \Sulu\Bundle\SearchBundle\Search\Factory()), $a, ($container->services['sulu_page.structure.factory'] ?? self::getSuluPage_Structure_FactoryService($container)), ($container->services['sulu_page.extension.manager'] ?? self::getSuluPage_Extension_ManagerService($container)), $container->parameters['sulu_page.search.mapping'])]), $c, $b, ($container->privates['massive_search.prefix_decorator'] ?? $container->load('getMassiveSearch_PrefixDecoratorService')), ($container->privates['massive_search.metadata.field_evaluator'] ?? $container->load('getMassiveSearch_Metadata_FieldEvaluatorService')));
    }
}
