vendor/ibexa/core/src/bundle/LegacySearchEngine/IbexaLegacySearchEngineBundle.php line 16

Open in your IDE?
  1. <?php
  2. /**
  3. * @copyright Copyright (C) Ibexa AS. All rights reserved.
  4. * @license For full copyright and license information view LICENSE file distributed with this source code.
  5. */
  6. namespace Ibexa\Bundle\LegacySearchEngine;
  7. use Ibexa\Core\Base\Container\Compiler\Search\FieldRegistryPass;
  8. use Ibexa\Core\Base\Container\Compiler\Search\Legacy\CriteriaConverterPass;
  9. use Ibexa\Core\Base\Container\Compiler\Search\Legacy\CriterionFieldValueHandlerRegistryPass;
  10. use Ibexa\Core\Base\Container\Compiler\Search\Legacy\SortClauseConverterPass;
  11. use Symfony\Component\DependencyInjection\ContainerBuilder;
  12. use Symfony\Component\HttpKernel\Bundle\Bundle;
  13. class IbexaLegacySearchEngineBundle extends Bundle
  14. {
  15. public function build(ContainerBuilder $container)
  16. {
  17. parent::build($container);
  18. $container->addCompilerPass(new CriteriaConverterPass());
  19. $container->addCompilerPass(new CriterionFieldValueHandlerRegistryPass());
  20. $container->addCompilerPass(new SortClauseConverterPass());
  21. $container->addCompilerPass(new FieldRegistryPass());
  22. }
  23. public function getContainerExtension()
  24. {
  25. if (!isset($this->extension)) {
  26. $this->extension = new DependencyInjection\IbexaLegacySearchEngineExtension();
  27. }
  28. return $this->extension;
  29. }
  30. }
  31. class_alias(IbexaLegacySearchEngineBundle::class, 'eZ\Bundle\EzPublishLegacySearchEngineBundle\EzPublishLegacySearchEngineBundle');