src/Bundles/PaymentBundle/PaymentBundle.php line 14

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Bundles\PaymentBundle;
  4. use App\Bundles\PaymentBundle\DBAL\BillingPeriod;
  5. use App\Bundles\PaymentBundle\DBAL\Money;
  6. use App\Bundles\PaymentBundle\DBAL\PaymentGateway;
  7. use App\Bundles\PaymentBundle\DBAL\SubscriptionStatus;
  8. use App\Platform\Bundle\PlatformBundle;
  9. use Doctrine\DBAL\Exception;
  10. class PaymentBundle extends PlatformBundle
  11. {
  12.     /**
  13.      * @throws Exception
  14.      */
  15.     public function boot(): void
  16.     {
  17.         $this->addCustomDBALType(BillingPeriod::BILLING_PERIODBillingPeriod::class);
  18.         $this->addCustomDBALType(SubscriptionStatus::SUBSCRIPTION_STATUSSubscriptionStatus::class);
  19.         $this->addCustomDBALType(PaymentGateway::PAYMENT_GATEWAYPaymentGateway::class);
  20.         $this->addCustomDBALType(Money::MONEYMoney::class);
  21.     }
  22. }