vendor/liip/monitor-bundle/LiipMonitorBundle.php line 16

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