vendor/xiidea/easy-audit/XiideaEasyAuditBundle.php line 21

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of the XiideaEasyAuditBundle package.
  4.  *
  5.  * (c) Xiidea <http://www.xiidea.net>
  6.  *
  7.  * This source file is subject to the MIT license that is bundled
  8.  * with this source code in the file LICENSE.
  9.  */
  10. namespace Xiidea\EasyAuditBundle;
  11. use Symfony\Component\DependencyInjection\ContainerBuilder;
  12. use Symfony\Component\HttpKernel\Bundle\Bundle;
  13. use Xiidea\EasyAuditBundle\DependencyInjection\Compiler\LoggerFactoryPass;
  14. use Xiidea\EasyAuditBundle\DependencyInjection\Compiler\MonologLoggerPass;
  15. use Xiidea\EasyAuditBundle\DependencyInjection\Compiler\ResolverFactoryPass;
  16. use Xiidea\EasyAuditBundle\DependencyInjection\Compiler\SubscriberPass;
  17. class XiideaEasyAuditBundle extends Bundle
  18. {
  19.     public function build(ContainerBuilder $container)
  20.     {
  21.         parent::build($container);
  22.         $container->addCompilerPass(new MonologLoggerPass());
  23.         $container->addCompilerPass(new LoggerFactoryPass());
  24.         $container->addCompilerPass(new SubscriberPass());
  25.         $container->addCompilerPass(new ResolverFactoryPass());
  26.     }
  27. }