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