-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathPlayer259GraphQLBundle.php
More file actions
33 lines (28 loc) · 1.23 KB
/
Player259GraphQLBundle.php
File metadata and controls
33 lines (28 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
declare(strict_types=1);
namespace Player259\GraphQLBundle;
use Player259\GraphQLBundle\DependencyInjection\Compiler\LoggerCompilerPass;
use Player259\GraphQLBundle\DependencyInjection\Compiler\TypeCompilerPass;
use Player259\GraphQLBundle\DependencyInjection\Player259GraphQLExtension;
use Symfony\Component\DependencyInjection\Compiler\PassConfig;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Extension\ExtensionInterface;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class Player259GraphQLBundle extends Bundle
{
public function build(ContainerBuilder $container)
{
// Should be run before Symfony\Component\HttpKernel\DependencyInjection\RegisterControllerArgumentLocatorsPass
// It has default params PassConfig::TYPE_BEFORE_OPTIMIZATION with 0 priority
// TypeCompilerPass adds `controller.service_arguments` tag
$container->addCompilerPass(new TypeCompilerPass(), PassConfig::TYPE_BEFORE_OPTIMIZATION, 100);
$container->addCompilerPass(new LoggerCompilerPass());
}
/**
* @return ExtensionInterface|null
*/
public function getContainerExtension()
{
return new Player259GraphQLExtension();
}
}