vendor/limenius/liform-bundle/LimeniusLiformBundle.php line 22

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of the Limenius\LiformBundle package.
  4.  *
  5.  * (c) Limenius <https://github.com/Limenius/>
  6.  *
  7.  * For the full copyright and license information, please view the LICENSE
  8.  * file that was distributed with this source code.
  9.  */
  10. namespace Limenius\LiformBundle;
  11. use Limenius\LiformBundle\DependencyInjection\Compiler\ExtensionCompilerPass;
  12. use Limenius\LiformBundle\DependencyInjection\Compiler\TransformerCompilerPass;
  13. use Symfony\Component\DependencyInjection\ContainerBuilder;
  14. use Symfony\Component\HttpKernel\Bundle\Bundle;
  15. /**
  16.  * @author Nacho Martín <nacho@limenius.com>
  17.  */
  18. class LimeniusLiformBundle extends Bundle
  19. {
  20.     /**
  21.      * @inheritDoc
  22.      */
  23.     public function build(ContainerBuilder $container)
  24.     {
  25.         $container->addCompilerPass(new TransformerCompilerPass());
  26.         $container->addCompilerPass(new ExtensionCompilerPass());
  27.     }
  28. }