forked from GeniusesOfSymfony/WebSocketBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
GosWebSocketBundle.php
37 lines (34 loc) · 1.53 KB
/
GosWebSocketBundle.php
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
34
35
36
37
<?php
namespace Gos\Bundle\WebSocketBundle;
use Gos\Bundle\WebSocketBundle\DependencyInjection\CompilerPass\DataCollectorCompilerPass;
use Gos\Bundle\WebSocketBundle\DependencyInjection\CompilerPass\LoopFactoryCompilerPass;
use Gos\Bundle\WebSocketBundle\DependencyInjection\CompilerPass\PeriodicCompilerPass;
use Gos\Bundle\WebSocketBundle\DependencyInjection\CompilerPass\PingableDriverCompilerPass;
use Gos\Bundle\WebSocketBundle\DependencyInjection\CompilerPass\PusherCompilerPass;
use Gos\Bundle\WebSocketBundle\DependencyInjection\CompilerPass\RpcCompilerPass;
use Gos\Bundle\WebSocketBundle\DependencyInjection\CompilerPass\ServerCompilerPass;
use Gos\Bundle\WebSocketBundle\DependencyInjection\CompilerPass\TopicCompilerPass;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;
/**
* @author Johann Saunier <[email protected]>
*/
class GosWebSocketBundle extends Bundle
{
/**
* @param ContainerBuilder $container
*/
public function build(ContainerBuilder $container)
{
$container
->addCompilerPass(new ServerCompilerPass())
->addCompilerPass(new RpcCompilerPass())
->addCompilerPass(new TopicCompilerPass())
->addCompilerPass(new PeriodicCompilerPass())
->addCompilerPass(new PingableDriverCompilerPass())
->addCompilerPass(new PusherCompilerPass())
->addCompilerPass(new DataCollectorCompilerPass())
->addCompilerPass(new LoopFactoryCompilerPass())
;
}
}