vendor/ibexa/form-builder/src/bundle/IbexaFormBuilderBundle.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\FormBuilder;
  8. use Ibexa\Bundle\FormBuilder\DependencyInjection\Compiler\CaptchaCompilerPass;
  9. use Ibexa\Bundle\FormBuilder\DependencyInjection\Compiler\FormBlockRelationCompilerPass;
  10. use Ibexa\Bundle\FormBuilder\DependencyInjection\Configuration\Parser\FormBuilder;
  11. use Symfony\Component\DependencyInjection\ContainerBuilder;
  12. use Symfony\Component\HttpKernel\Bundle\Bundle;
  13. class IbexaFormBuilderBundle extends Bundle
  14. {
  15.     /**
  16.      * {@inheritdoc}
  17.      *
  18.      * @throws \Symfony\Component\DependencyInjection\Exception\LogicException
  19.      */
  20.     public function build(ContainerBuilder $container)
  21.     {
  22.         $container->addCompilerPass(new FormBlockRelationCompilerPass());
  23.         $container->addCompilerPass(new CaptchaCompilerPass());
  24.         /** @var \Ibexa\Bundle\Core\DependencyInjection\IbexaCoreExtension $core */
  25.         $core $container->getExtension('ibexa');
  26.         $core->addConfigParser(new FormBuilder());
  27.         $core->addDefaultSettings(__DIR__ '/Resources/config', ['default_settings.yaml']);
  28.     }
  29. }
  30. class_alias(IbexaFormBuilderBundle::class, 'EzSystems\EzPlatformFormBuilderBundle\EzPlatformFormBuilderBundle');