- <?php
- /*
-  * This file is part of EC-CUBE
-  *
-  * Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
-  *
-  * http://www.ec-cube.co.jp/
-  *
-  * For the full copyright and license information, please view the LICENSE
-  * file that was distributed with this source code.
-  */
- namespace Plugin\Api42\Bundle;
- use Plugin\Api42\DependencyInjection\ApiExtension;
- use Plugin\Api42\DependencyInjection\Compiler\ApiCompilerPass;
- use Symfony\Component\DependencyInjection\ContainerBuilder;
- use Symfony\Component\DependencyInjection\Extension\ExtensionInterface;
- use Symfony\Component\HttpKernel\Bundle\Bundle;
- class ApiBundle extends Bundle
- {
-     public function build(ContainerBuilder $container)
-     {
-         parent::build($container);
-         $container->addCompilerPass(new ApiCompilerPass());
-     }
-     public function getContainerExtension(): ?ExtensionInterface
-     {
-         return new ApiExtension();
-     }
- }
-