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

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\DependencyInjection\Extension\ExtensionInterface;
  17. use Symfony\Component\HttpKernel\Bundle\Bundle;
  18. class ApiBundle extends Bundle
  19. {
  20.     public function build(ContainerBuilder $container)
  21.     {
  22.         parent::build($container);
  23.         $container->addCompilerPass(new ApiCompilerPass());
  24.     }
  25.     public function getContainerExtension(): ?ExtensionInterface
  26.     {
  27.         return new ApiExtension();
  28.     }
  29. }