2 namespace TYPO3\CMS\Install\Service;
57 public function getExpectedDatabaseSchema()
60 $schemaMigrationService = $this->objectManager->get(\TYPO3\CMS\Install\Service\SqlSchemaMigrationService::class);
64 $cleanedExpectedSchemaString = implode(LF, $schemaMigrationService->getStatementArray($expectedSchemaString,
true,
'^CREATE TABLE '));
65 $expectedSchema = $schemaMigrationService->getFieldDefinitions_fileContent($cleanedExpectedSchemaString);
66 return $expectedSchema;
80 $loadedExtensionInformation =
$GLOBALS[
'TYPO3_LOADED_EXT'];
81 foreach ($loadedExtensionInformation as $extensionConfiguration) {
82 if ((is_array($extensionConfiguration) || $extensionConfiguration instanceof \ArrayAccess) && $extensionConfiguration[
'ext_tables.sql']) {
86 && (is_array($extensionConfiguration) || $extensionConfiguration instanceof \ArrayAccess)
87 && $extensionConfiguration[
'ext_tables_static+adt.sql']
95 return implode(LF . LF . LF . LF, $sqlString);
106 $signalReturn = $this->signalSlotDispatcher->dispatch(__CLASS__,
'tablesDefinitionIsBeingBuilt', array($sqlString));
108 $signalReturn = array_values($signalReturn);
109 $sqlString = $signalReturn[0];
110 if (!is_array($sqlString)) {
111 throw new Exception\UnexpectedSignalReturnValueTypeException(
113 'The signal %s of class %s returned a value of type %s, but array was expected.',
114 'tablesDefinitionIsBeingBuilt',