src/WellCommerce/Bundle/SearchBundle/WellCommerceSearchBundle.php line 25

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\SearchBundle;
  14. use Symfony\Component\DependencyInjection\ContainerBuilder;
  15. use Symfony\Component\HttpKernel\Bundle\Bundle;
  16. use WellCommerce\Bundle\SearchBundle\DependencyInjection\Compiler\SearchTypePass;
  17. /**
  18.  * Class WellCommerceSearchBundle
  19.  *
  20.  * @author  Adam Piotrowski <adam@wellcommerce.org>
  21.  */
  22. class WellCommerceSearchBundle extends Bundle
  23. {
  24.     public function build(ContainerBuilder $container)
  25.     {
  26.         parent::build($container);
  27.         $container->addCompilerPass(new SearchTypePass());
  28.     }
  29. }