src/WellCommerce/Bundle/AppBundle/WellCommerceAppBundle.php line 27

Open in your IDE?
  1. <?php
  2. declare(strict_types=0);
  3. /*
  4.  * WellCommerce Foundation
  5.  *
  6.  * This file is part of the WellCommerce package.
  7.  *
  8.  * (c) Adam Piotrowski <adam@wellcommerce.org>, Adrian Potepa <adrian@wellcommerce.org>
  9.  *
  10.  * For the full copyright and license information,
  11.  * please view the LICENSE file that was distributed with this source code.
  12.  */
  13. namespace WellCommerce\Bundle\AppBundle;
  14. use Symfony\Component\DependencyInjection\ContainerBuilder;
  15. use Symfony\Component\HttpKernel\Bundle\Bundle;
  16. use WellCommerce\Bundle\AppBundle\DependencyInjection\Compiler;
  17. /**
  18.  * Class WellCommerceAppBundle
  19.  *
  20.  * @author  Adam Piotrowski <adam@wellcommerce.org>
  21.  */
  22. class WellCommerceAppBundle extends Bundle
  23. {
  24.     public function build(ContainerBuilder $container)
  25.     {
  26.         parent::build($container);
  27.         $container->addCompilerPass(new Compiler\ThemeCompilerPass());
  28.         $container->addCompilerPass(new Compiler\LayoutBoxConfiguratorPass());
  29.         $container->addCompilerPass(new Compiler\RegisterSystemConfiguratorPass());
  30.         $container->addCompilerPass(new Compiler\RegisterOAuthProviderPass());
  31.         $container->addCompilerPass(new Compiler\RegisterConsoleCommandProviderPass());
  32.         $container->addCompilerPass(new Compiler\RegisterBreadcrumbProviderPass());
  33.     }
  34. }