dbSchemaBuilder = $dbSchemaBuilder; $this->declarativeSchemaBuilder = $declarativeSchemaBuilder; $this->schemaFactory = $schemaFactory; $this->readerComposite = $readerComposite; } /** * @inheritdoc */ public function getDbConfig() { $schema = $this->schemaFactory->create(); $schema = $this->dbSchemaBuilder->build($schema); return $schema; } /** * @inheritdoc */ public function getDeclarationConfig() { $schema = $this->schemaFactory->create(); $data = $this->readerComposite->read(FileResolverByModule::ALL_MODULES); $this->declarativeSchemaBuilder->addTablesData($data['table']); $schema = $this->declarativeSchemaBuilder->build($schema); return $schema; } }