vendor/thecodingmachine/graphqlite-bundle/GraphQLiteBundle.php line 13

Open in your IDE?
  1. <?php
  2. namespace TheCodingMachine\GraphQLite\Bundle;
  3. use TheCodingMachine\GraphQLite\Bundle\DependencyInjection\GraphQLiteExtension;
  4. use TheCodingMachine\GraphQLite\Bundle\DependencyInjection\OverblogGraphiQLEndpointWiringPass;
  5. use Symfony\Component\DependencyInjection\Compiler\PassConfig;
  6. use Symfony\Component\DependencyInjection\ContainerBuilder;
  7. use Symfony\Component\HttpKernel\Bundle\Bundle;
  8. use TheCodingMachine\GraphQLite\Bundle\DependencyInjection\GraphQLiteCompilerPass;
  9. class GraphQLiteBundle extends Bundle
  10. {
  11.     public function build(ContainerBuilder $container): void
  12.     {
  13.         parent::build($container);
  14.         $container->addCompilerPass(new GraphQLiteCompilerPass(), PassConfig::TYPE_BEFORE_OPTIMIZATION);
  15.         $container->addCompilerPass(new OverblogGraphiQLEndpointWiringPass(), PassConfig::TYPE_BEFORE_OPTIMIZATION, -1);
  16.     }
  17.     public function getContainerExtension()
  18.     {
  19.         if (null === $this->extension) {
  20.             $this->extension = new GraphQLiteExtension();
  21.         }
  22.         return $this->extension;
  23.     }
  24. }