Esempio n. 1
0
 /**
  * Boot service provider.
  */
 public function boot(CustomTypeManager $typeManager)
 {
     $typeManager->addCustomTypes(config('doctrine.custom_types', []));
     // Boot the extension manager
     $this->app->make(ExtensionManager::class)->boot();
     $this->publishes([$this->getConfigPath() => config_path('doctrine.php')], 'config');
 }
Esempio n. 2
0
 public function test_can_add_multiple_types()
 {
     $manager = new CustomTypeManager();
     $manager->addCustomTypes(['type3' => TypeMock::class, 'type4' => TypeMock2::class]);
     $this->assertInstanceOf(TypeMock::class, $manager->getType('type3'));
     $this->assertInstanceOf(TypeMock2::class, $manager->getType('type4'));
 }