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_cannot_get_non_existing_type()
 {
     $this->setExpectedException(DBALException::class);
     $manager = new CustomTypeManager();
     $manager->getType('non_existing');
 }