vendor/ibexa/elasticsearch/src/bundle/IbexaElasticsearchBundle.php line 15

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. declare(strict_types=1);
  7. namespace Ibexa\Bundle\Elasticsearch;
  8. use Ibexa\Bundle\Elasticsearch\DependencyInjection\IbexaElasticsearchExtension;
  9. use Symfony\Component\DependencyInjection\Extension\ExtensionInterface;
  10. use Symfony\Component\HttpKernel\Bundle\Bundle;
  11. final class IbexaElasticsearchBundle extends Bundle
  12. {
  13.     /**
  14.      * Overwritten to be able to use custom alias.
  15.      */
  16.     public function getContainerExtension(): ExtensionInterface
  17.     {
  18.         if (null === $this->extension) {
  19.             $this->extension = new IbexaElasticsearchExtension();
  20.         }
  21.         return $this->extension;
  22.     }
  23. }
  24. class_alias(IbexaElasticsearchBundle::class, 'Ibexa\Platform\Bundle\ElasticSearchEngine\PlatformElasticSearchEngineBundle');