vendor/ibexa/payment/src/bundle/IbexaPaymentBundle.php line 17

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\Payment;
  8. use Ibexa\Bundle\Payment\DependencyInjection\Configuration\PaymentRepositoryConfig;
  9. use Ibexa\Bundle\Payment\DependencyInjection\Configuration\PaymentSiteAccessConfig;
  10. use Ibexa\Payment\Security\Policy\PolicyProvider;
  11. use Symfony\Component\DependencyInjection\ContainerBuilder;
  12. use Symfony\Component\HttpKernel\Bundle\Bundle;
  13. final class IbexaPaymentBundle extends Bundle
  14. {
  15. public function build(ContainerBuilder $container): void
  16. {
  17. /** @var \Ibexa\Bundle\Core\DependencyInjection\IbexaCoreExtension $core */
  18. $core = $container->getExtension('ibexa');
  19. $core->addConfigParser(new PaymentSiteAccessConfig());
  20. $core->addDefaultSettings(__DIR__ . '/Resources/config', ['defaults.yaml']);
  21. $core->addPolicyProvider(new PolicyProvider());
  22. $core->addRepositoryConfigParser(new PaymentRepositoryConfig());
  23. }
  24. }