vendor/ibexa/content-forms/src/bundle/IbexaContentFormsBundle.php line 19

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\ContentForms;
  8. use Ibexa\Bundle\ContentForms\DependencyInjection\Compiler\FieldTypeFormMapperDispatcherPass;
  9. use Ibexa\Bundle\ContentForms\DependencyInjection\Configuration\Parser\ContentCreateView;
  10. use Ibexa\Bundle\ContentForms\DependencyInjection\Configuration\Parser\ContentEdit;
  11. use Ibexa\Bundle\ContentForms\DependencyInjection\Configuration\Parser\ContentEditView;
  12. use Ibexa\Bundle\ContentForms\DependencyInjection\Configuration\Parser\UserEdit;
  13. use Symfony\Component\DependencyInjection\ContainerBuilder;
  14. use Symfony\Component\HttpKernel\Bundle\Bundle;
  15. class IbexaContentFormsBundle extends Bundle
  16. {
  17.     public function build(ContainerBuilder $container)
  18.     {
  19.         parent::build($container);
  20.         $container->addCompilerPass(new FieldTypeFormMapperDispatcherPass());
  21.         $eZExtension $container->getExtension('ibexa');
  22.         $eZExtension->addConfigParser(new ContentEdit());
  23.         $eZExtension->addConfigParser(new UserEdit());
  24.         $eZExtension->addConfigParser(new ContentEditView());
  25.         $eZExtension->addConfigParser(new ContentCreateView());
  26.         $eZExtension->addDefaultSettings(__DIR__ '/Resources/config', ['ezpublish_default_settings.yaml']);
  27.     }
  28. }
  29. class_alias(IbexaContentFormsBundle::class, 'EzSystems\EzPlatformContentFormsBundle\EzPlatformContentFormsBundle');