vendor/store.shopware.com/swagpaypal/src/OpenApi/OpenApiPathsSubscriber.php line 20

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. /*
  3.  * (c) shopware AG <info@shopware.com>
  4.  * For the full copyright and license information, please view the LICENSE
  5.  * file that was distributed with this source code.
  6.  */
  7. namespace Swag\PayPal\OpenApi;
  8. use Shopware\Core\Framework\Api\ApiDefinition\Generator\OpenApi\Event\OpenApiPathsEvent;
  9. use Symfony\Component\EventDispatcher\EventSubscriberInterface;
  10. class OpenApiPathsSubscriber implements EventSubscriberInterface
  11. {
  12.     public static function getSubscribedEvents()
  13.     {
  14.         return [OpenApiPathsEvent::class => 'addSchemaPaths'];
  15.     }
  16.     public function addSchemaPaths(OpenApiPathsEvent $event): void
  17.     {
  18.         $event->addPath(__DIR__ '/../RestApi/V1');
  19.         $event->addPath(__DIR__ '/../RestApi/V2');
  20.     }
  21. }