vendor/ibexa/fieldtype-page/src/bundle/IbexaFieldTypePageBundle.php line 14

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. namespace Ibexa\Bundle\FieldTypePage;
  7. use Ibexa\Bundle\FieldTypePage\DependencyInjection\Compiler;
  8. use Ibexa\Bundle\FieldTypePage\DependencyInjection\IbexaFieldTypePageExtension;
  9. use Symfony\Component\DependencyInjection\ContainerBuilder;
  10. use Symfony\Component\HttpKernel\Bundle\Bundle;
  11. class IbexaFieldTypePageBundle extends Bundle
  12. {
  13.     /**
  14.      * @param \Symfony\Component\DependencyInjection\ContainerBuilder $container
  15.      */
  16.     public function build(ContainerBuilder $container)
  17.     {
  18.         parent::build($container);
  19.         $container->addCompilerPass(new Compiler\LayoutsCompilerPass());
  20.         $container->addCompilerPass(new Compiler\AttributeFormTypeMapperPass());
  21.         $container->addCompilerPass(new Compiler\BlockDefinitionConfigurationCompilerPass());
  22.         $container->addCompilerPass(new Compiler\ReactBlockDefinitionConfigurationCompilerPass());
  23.         $container->addCompilerPass(new Compiler\BlockValidatorsConfigurationCompilerPass());
  24.         $bundles $container->getParameter('kernel.bundles');
  25.         if (isset($bundles['IbexaGraphQLBundle'])) {
  26.             $container->addCompilerPass(new Compiler\GraphQL\BlockAttributesBuildersPass());
  27.             $container->addCompilerPass(new Compiler\GraphQL\RegisterBlocksAttributesTypesPass());
  28.             $container->addCompilerPass(new Compiler\GraphQL\RegisterBlocksTypesPass());
  29.             $container->addCompilerPass(new Compiler\GraphQL\PageResolverBlocksTypesPass());
  30.             $container->addCompilerPass(new Compiler\GraphQL\RegisterSchedulerBlockTypesPass());
  31.         }
  32.     }
  33.     /**
  34.      * {@inheritdoc}
  35.      */
  36.     public function getContainerExtension()
  37.     {
  38.         if (!isset($this->extension)) {
  39.             $this->extension = new IbexaFieldTypePageExtension();
  40.         }
  41.         return $this->extension;
  42.     }
  43. }
  44. class_alias(IbexaFieldTypePageBundle::class, 'EzSystems\EzPlatformPageFieldTypeBundle\EzPlatformPageFieldTypeBundle');