<?php
/**
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/
declare(strict_types=1);
namespace Ibexa\Bundle\Storefront;
use Ibexa\Bundle\Storefront\DependencyInjection\Configuration\SiteAccessAware\StorefrontParser;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;
final class IbexaStorefrontBundle extends Bundle
{
public const STOREFRONT_GROUP_NAME = 'storefront_group';
public function build(ContainerBuilder $container): void
{
/** @var \Ibexa\Bundle\Core\DependencyInjection\IbexaCoreExtension $kernel */
$kernel = $container->getExtension('ibexa');
$kernel->addConfigParser(new StorefrontParser());
$kernel->addDefaultSettings(__DIR__ . '/Resources/config', ['defaults.yaml']);
}
}