1 | <?php |
||
2 | |||
3 | namespace Liip\MonitorBundle; |
||
4 | |||
5 | use Laminas\Diagnostics\Check\CheckInterface; |
||
6 | use Liip\MonitorBundle\DependencyInjection\Compiler\AddGroupsCompilerPass; |
||
7 | use Liip\MonitorBundle\DependencyInjection\Compiler\AdditionalReporterCompilerPass; |
||
8 | use Liip\MonitorBundle\DependencyInjection\Compiler\CheckAssetsEnabledPass; |
||
9 | use Liip\MonitorBundle\DependencyInjection\Compiler\CheckCollectionTagCompilerPass; |
||
10 | use Liip\MonitorBundle\DependencyInjection\Compiler\CheckTagCompilerPass; |
||
11 | use Liip\MonitorBundle\DependencyInjection\Compiler\GroupRunnersCompilerPass; |
||
12 | use Liip\MonitorBundle\DependencyInjection\Compiler\MailerCompilerPass; |
||
13 | use Symfony\Component\DependencyInjection\ContainerBuilder; |
||
14 | use Symfony\Component\HttpKernel\Bundle\Bundle; |
||
15 | |||
16 | class LiipMonitorBundle extends Bundle |
||
17 | { |
||
18 | 2 | public function build(ContainerBuilder $container) |
|
19 | { |
||
20 | 2 | if (method_exists($container, 'registerForAutoconfiguration')) { |
|
21 | 2 | $container->registerForAutoconfiguration(CheckInterface::class) |
|
22 | 2 | ->addTag('liip_monitor.check'); |
|
23 | } |
||
24 | |||
25 | 2 | $container->addCompilerPass(new CheckAssetsEnabledPass()); |
|
26 | 2 | $container->addCompilerPass(new AddGroupsCompilerPass()); |
|
27 | 2 | $container->addCompilerPass(new GroupRunnersCompilerPass()); |
|
28 | 2 | $container->addCompilerPass(new CheckTagCompilerPass()); |
|
29 | 2 | $container->addCompilerPass(new CheckCollectionTagCompilerPass()); |
|
30 | 2 | $container->addCompilerPass(new AdditionalReporterCompilerPass()); |
|
31 | 2 | $container->addCompilerPass(new MailerCompilerPass()); |
|
32 | 2 | } |
|
33 | } |
||
34 |