-
Notifications
You must be signed in to change notification settings - Fork 103
/
LiipMonitorBundle.php
33 lines (29 loc) · 1.5 KB
/
LiipMonitorBundle.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
<?php
namespace Liip\MonitorBundle;
use Laminas\Diagnostics\Check\CheckInterface;
use Liip\MonitorBundle\DependencyInjection\Compiler\AddGroupsCompilerPass;
use Liip\MonitorBundle\DependencyInjection\Compiler\AdditionalReporterCompilerPass;
use Liip\MonitorBundle\DependencyInjection\Compiler\CheckAssetsEnabledPass;
use Liip\MonitorBundle\DependencyInjection\Compiler\CheckCollectionTagCompilerPass;
use Liip\MonitorBundle\DependencyInjection\Compiler\CheckTagCompilerPass;
use Liip\MonitorBundle\DependencyInjection\Compiler\GroupRunnersCompilerPass;
use Liip\MonitorBundle\DependencyInjection\Compiler\MailerCompilerPass;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class LiipMonitorBundle extends Bundle
{
public function build(ContainerBuilder $container): void
{
if (method_exists($container, 'registerForAutoconfiguration')) {
$container->registerForAutoconfiguration(CheckInterface::class)
->addTag('liip_monitor.check');
}
$container->addCompilerPass(new CheckAssetsEnabledPass());
$container->addCompilerPass(new AddGroupsCompilerPass());
$container->addCompilerPass(new GroupRunnersCompilerPass());
$container->addCompilerPass(new CheckTagCompilerPass());
$container->addCompilerPass(new CheckCollectionTagCompilerPass());
$container->addCompilerPass(new AdditionalReporterCompilerPass());
$container->addCompilerPass(new MailerCompilerPass());
}
}