WFuserdata . '/tmp/' . $config->WFdbname); $serviceCacheFile = $installConf->getServiceCacheFile(); @unlink($serviceCacheFile); $app = new ApplicationCore(); $DEBUG = 0; $app->Conf = $config; $app->DB = new DB($app->Conf->WFdbhost,$app->Conf->WFdbname,$app->Conf->WFdbuser,$app->Conf->WFdbpass, $app, $app->Conf->WFdbport); if(class_exists('erpAPICustom')) { $erp = new erpAPICustom($app); }else{ $erp = new erpAPI($app); } echo "STARTE DB Upgrade\r\n"; $erp->UpgradeDatabase(); echo "ENDE DB Upgrade\r\n\r\n"; try { echo "STARTE Installer\r\n"; $resolver = new Psr4ClassNameResolver(); $resolver->addNamespace('Xentral\\', __DIR__ . '/classes'); $resolver->excludeFile(__DIR__ . '/classes/bootstrap.php'); $generator = new ClassMapGenerator($resolver, __DIR__); $installer = new Installer($generator, $resolver); $writer = new InstallerCacheWriter($installConf, $installer); $dbConfig = new DatabaseConfig( $app->Conf->WFdbhost, $app->Conf->WFdbuser, $app->Conf->WFdbpass, $app->Conf->WFdbname, null, $app->Conf->WFdbport ); $tableSchemaCreator = new TableSchemaEnsurer( $app->Container->get('SchemaCreator'), $installConf, $dbConfig ); echo "SCHREIBE ServiceMap\r\n"; $writer->writeServiceCache(); echo "SCHREIBE JavascriptMap\r\n"; $writer->writeJavascriptCache(); echo "ERZEUGE Table Schemas\r\n"; $schemaCollection = $installer->getTableSchemas(); $tableSchemaCreator->ensureSchemas($schemaCollection); echo "ENDE Installer\r\n"; // } catch (Exception $e) { echo "FEHLER " . $e->getMessage() . "\r\n"; }