vendor/contao-community-alliance/dc-general/src/CcaDcGeneralBundle.php line 30

Open in your IDE?
  1. <?php
  2. /**
  3.  * This file is part of contao-community-alliance/dc-general.
  4.  *
  5.  * (c) 2013-2019 Contao Community Alliance.
  6.  *
  7.  * For the full copyright and license information, please view the LICENSE
  8.  * file that was distributed with this source code.
  9.  *
  10.  * This project is provided in good faith and hope to be usable by anyone.
  11.  *
  12.  * @package    contao-community-alliance/dc-general
  13.  * @author     Sven Baumann <baumann.sv@gmail.com>
  14.  * @author     Christian Schiffler <c.schiffler@cyberspectrum.de>
  15.  * @copyright  2013-2019 Contao Community Alliance.
  16.  * @license    https://github.com/contao-community-alliance/dc-general/blob/master/LICENSE LGPL-3.0-or-later
  17.  * @filesource
  18.  */
  19. namespace ContaoCommunityAlliance\DcGeneral;
  20. use ContaoCommunityAlliance\DcGeneral\DependencyInjection\Compiler\AddSessionBagsPass;
  21. use Symfony\Component\DependencyInjection\ContainerBuilder;
  22. use Symfony\Component\HttpKernel\Bundle\Bundle;
  23. /**
  24.  * This class holds everything together.
  25.  */
  26. class CcaDcGeneralBundle extends Bundle
  27. {
  28.     /**
  29.      * {@inheritDoc}
  30.      */
  31.     public function build(ContainerBuilder $container)
  32.     {
  33.         parent::build($container);
  34.         $container->addCompilerPass(new AddSessionBagsPass());
  35.     }
  36. }