vendor/ibexa/checkout/src/bundle/IbexaCheckoutBundle.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. declare(strict_types=1);
  7. namespace Ibexa\Bundle\Checkout;
  8. use Ibexa\Bundle\Checkout\DependencyInjection\Configuration\CheckoutParser;
  9. use Ibexa\Checkout\Security\CheckoutPolicyProvider;
  10. use Symfony\Component\DependencyInjection\ContainerBuilder;
  11. use Symfony\Component\HttpKernel\Bundle\Bundle;
  12. final class IbexaCheckoutBundle extends Bundle
  13. {
  14. public function build(ContainerBuilder $container): void
  15. {
  16. /** @var \Ibexa\Bundle\Core\DependencyInjection\IbexaCoreExtension $core */
  17. $core = $container->getExtension('ibexa');
  18. $core->addRepositoryConfigParser(new CheckoutParser());
  19. $core->addPolicyProvider(new CheckoutPolicyProvider());
  20. }
  21. }