forked from GeniusesOfSymfony/WebSocketBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGosWebSocketBundle.php
More file actions
32 lines (29 loc) · 1.36 KB
/
GosWebSocketBundle.php
File metadata and controls
32 lines (29 loc) · 1.36 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
<?php declare(strict_types=1);
namespace Gos\Bundle\WebSocketBundle;
use Gos\Bundle\WebSocketBundle\DependencyInjection\CompilerPass\DataCollectorCompilerPass;
use Gos\Bundle\WebSocketBundle\DependencyInjection\CompilerPass\PeriodicCompilerPass;
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\ServerPushHandlerCompilerPass;
use Gos\Bundle\WebSocketBundle\DependencyInjection\CompilerPass\TopicCompilerPass;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;
/**
* @author Johann Saunier <johann_27@hotmail.fr>
*/
class GosWebSocketBundle extends Bundle
{
public function build(ContainerBuilder $container): void
{
$container
->addCompilerPass(new ServerCompilerPass())
->addCompilerPass(new RpcCompilerPass())
->addCompilerPass(new TopicCompilerPass())
->addCompilerPass(new PeriodicCompilerPass())
->addCompilerPass(new PusherCompilerPass())
->addCompilerPass(new ServerPushHandlerCompilerPass())
->addCompilerPass(new DataCollectorCompilerPass())
;
}
}