vendor/ibexa/site-context/src/bundle/IbexaSiteContextBundle.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\SiteContext;
  8. use Ibexa\Bundle\SiteContext\DependencyInjection\Configuration\ConfigurationParser;
  9. use Symfony\Component\DependencyInjection\ContainerBuilder;
  10. use Symfony\Component\HttpKernel\Bundle\Bundle;
  11. final class IbexaSiteContextBundle extends Bundle
  12. {
  13.     public function build(ContainerBuilder $container): void
  14.     {
  15.         /** @var \Ibexa\Bundle\Core\DependencyInjection\IbexaCoreExtension $core */
  16.         $core $container->getExtension('ibexa');
  17.         $core->addConfigParser(new ConfigurationParser());
  18.         $core->addDefaultSettings(__DIR__ '/Resources/config', ['defaults.yaml']);
  19.     }
  20. }