vendor/galilee/pimcore-graphql/src/GraphQlBundle.php line 28

Open in your IDE?
  1. <?php
  2. namespace Galilee\GraphQlBundle;
  3. use Galilee\GraphQlBundle\DependencyInjection\Compiler\AskResetPasswordCompilerPass;
  4. use Galilee\GraphQlBundle\DependencyInjection\Compiler\CustomMutationCompilerPass;
  5. use Galilee\GraphQlBundle\DependencyInjection\Compiler\CustomQueryCompilerPass;
  6. use Galilee\GraphQlBundle\DependencyInjection\Compiler\ImpersonateUserCompilerPass;
  7. use Galilee\GraphQlBundle\DependencyInjection\Compiler\LoginCompilerPass;
  8. use Galilee\GraphQlBundle\DependencyInjection\Compiler\PimcoreQueryListingOverrideCompilerPass;
  9. use Galilee\GraphQlBundle\DependencyInjection\Compiler\PimcoreTypeExtensionCompilerPass;
  10. use Galilee\GraphQlBundle\DependencyInjection\Compiler\PimcoreOperationEventManagerCompilerPass;
  11. use Galilee\GraphQlBundle\DependencyInjection\Compiler\ResetPasswordCompilerPass;
  12. use Galilee\GraphQlBundle\DependencyInjection\Compiler\SignupCompilerPass;
  13. use Galilee\GraphQlBundle\GraphQl\CustomMutationInterface;
  14. use Galilee\GraphQlBundle\GraphQl\CustomQueryInterface;
  15. use Galilee\GraphQlBundle\GraphQl\PimcoreOperationEventManagerInterface;
  16. use Galilee\GraphQlBundle\GraphQl\PimcoreQueryListingOverrideInterface;
  17. use Galilee\GraphQlBundle\GraphQl\PimcoreTypeExtensionInterface;
  18. use Galilee\GraphQlBundle\Services\Security\AskResetPasswordSecurityInterface;
  19. use Galilee\GraphQlBundle\Services\Security\ImpersonateUserSecurityInterface;
  20. use Galilee\GraphQlBundle\Services\Security\LoginSecurityInterface;
  21. use Galilee\GraphQlBundle\Services\Security\ResetPasswordSecurityInterface;
  22. use Galilee\GraphQlBundle\Services\Security\SignupSecurityInterface;
  23. use Symfony\Component\DependencyInjection\ContainerBuilder;
  24. use Symfony\Component\HttpKernel\Bundle\Bundle;
  25. class GraphQlBundle extends Bundle
  26. {
  27.     public function build(ContainerBuilder $container)
  28.     {
  29.         $container->registerForAutoconfiguration(CustomQueryInterface::class)
  30.             ->addTag('galilee.graphql.custom.queries');
  31.         $container->addCompilerPass(new CustomQueryCompilerPass());
  32.         $container->registerForAutoconfiguration(CustomMutationInterface::class)
  33.             ->addTag('galilee.graphql.custom.mutations');
  34.         $container->addCompilerPass(new CustomMutationCompilerPass());
  35.         $container->registerForAutoconfiguration(PimcoreQueryListingOverrideInterface::class)
  36.             ->addTag('galilee.graphql.query.listing.override');
  37.         $container->addCompilerPass(new PimcoreQueryListingOverrideCompilerPass());
  38.         $container->registerForAutoconfiguration(PimcoreTypeExtensionInterface::class)
  39.             ->addTag('galilee.graphql.type.extension');
  40.         $container->addCompilerPass(new PimcoreTypeExtensionCompilerPass());
  41.         $container->registerForAutoconfiguration(PimcoreOperationEventManagerInterface::class)
  42.             ->addTag('galilee.graphql.pimcore.operation.event.manager');
  43.         $container->addCompilerPass(new PimcoreOperationEventManagerCompilerPass());
  44.         $container->registerForAutoconfiguration(LoginSecurityInterface::class)
  45.             ->addTag('galilee.graphql.pimcore.security.login');
  46.         $container->addCompilerPass(new LoginCompilerPass());
  47.         $container->registerForAutoconfiguration(SignupSecurityInterface::class)
  48.             ->addTag('galilee.graphql.pimcore.security.signup');
  49.         $container->addCompilerPass(new SignupCompilerPass());
  50.         $container->registerForAutoconfiguration(AskResetPasswordSecurityInterface::class)
  51.             ->addTag('galilee.graphql.pimcore.security.askResetPass');
  52.         $container->addCompilerPass(new AskResetPasswordCompilerPass());
  53.         $container->registerForAutoconfiguration(ResetPasswordSecurityInterface::class)
  54.             ->addTag('galilee.graphql.pimcore.security.resetPass');
  55.         $container->addCompilerPass(new ResetPasswordCompilerPass());
  56.         $container->registerForAutoconfiguration(ImpersonateUserSecurityInterface::class)
  57.             ->addTag('galilee.graphql.pimcore.security.impersonateUser');
  58.         $container->addCompilerPass(new ImpersonateUserCompilerPass());
  59.     }
  60. }