app/Plugin/Api42/Bundle/ApiBundle.php line 21

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of EC-CUBE
  4.  *
  5.  * Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  6.  *
  7.  * http://www.ec-cube.co.jp/
  8.  *
  9.  * For the full copyright and license information, please view the LICENSE
  10.  * file that was distributed with this source code.
  11.  */
  12. namespace Plugin\Api42\Bundle;
  13. use Plugin\Api42\DependencyInjection\ApiExtension;
  14. use Plugin\Api42\DependencyInjection\Compiler\ApiCompilerPass;
  15. use Symfony\Component\DependencyInjection\ContainerBuilder;
  16. use Symfony\Component\HttpKernel\Bundle\Bundle;
  17. class ApiBundle extends Bundle
  18. {
  19.     public function build(ContainerBuilder $container)
  20.     {
  21.         parent::build($container);
  22.         $container->addCompilerPass(new ApiCompilerPass());
  23.     }
  24.     public function getContainerExtension()
  25.     {
  26.         return new ApiExtension();
  27.     }
  28. }