-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDrawDrawBundle.php
More file actions
25 lines (21 loc) · 816 Bytes
/
DrawDrawBundle.php
File metadata and controls
25 lines (21 loc) · 816 Bytes
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
<?php
namespace Draw\DrawBundle;
use Draw\DrawBundle\DependencyInjection\CompilerPass;
use Draw\DrawBundle\DependencyInjection\DoctrineServiceRepositoryCompilerPass;
use Draw\DrawBundle\DependencyInjection\DrawDrawExtension;
use Draw\DrawBundle\DependencyInjection\FOSRestBundleCompilerPass;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class DrawDrawBundle extends Bundle
{
public function build(ContainerBuilder $container)
{
$container->addCompilerPass(new CompilerPass());
$container->addCompilerPass(new DoctrineServiceRepositoryCompilerPass());
$container->addCompilerPass(new FOSRestBundleCompilerPass());
}
public function getContainerExtension()
{
return new DrawDrawExtension();
}
}