src/Bundles/DiseaseCaseBundle/DiseaseCaseBundle.php line 16

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Bundles\DiseaseCaseBundle;
  4. use App\Bundles\DiseaseCaseBundle\DBAL\DiseaseCaseState;
  5. use App\Bundles\DiseaseCaseBundle\DBAL\DiseaseCaseStatus;
  6. use App\Bundles\DiseaseCaseBundle\DBAL\DiseaseCaseTestVersion;
  7. use App\Bundles\DiseaseCaseBundle\DBAL\DiseaseCaseVersion;
  8. use App\Bundles\DiseaseCaseBundle\DBAL\ResourceType;
  9. use App\Bundles\DiseaseCaseBundle\DBAL\ShareDiseaseCasePermission;
  10. use App\Platform\Bundle\PlatformBundle;
  11. use Doctrine\DBAL\Exception;
  12. class DiseaseCaseBundle extends PlatformBundle
  13. {
  14.     /**
  15.      * @throws Exception
  16.      */
  17.     public function boot(): void
  18.     {
  19.         $this->addCustomDBALType(ResourceType::NAMEResourceType::class);
  20.         $this->addCustomDBALType(DiseaseCaseStatus::NAMEDiseaseCaseStatus::class);
  21.         $this->addCustomDBALType(DiseaseCaseState::NAMEDiseaseCaseState::class);
  22.         $this->addCustomDBALType(DiseaseCaseVersion::NAMEDiseaseCaseVersion::class);
  23.         $this->addCustomDBALType(DiseaseCaseTestVersion::NAMEDiseaseCaseTestVersion::class);
  24.         $this->addCustomDBALType(ShareDiseaseCasePermission::NAMEShareDiseaseCasePermission::class);
  25.     }
  26. }