[BUGFIX] Class references to SqlExpectedSchemaService 01/53801/3
authorChristian Kuhn <lolli@schwarzbu.ch>
Thu, 24 Aug 2017 19:18:48 +0000 (21:18 +0200)
committerSusanne Moog <susanne.moog@typo3.org>
Fri, 25 Aug 2017 08:22:13 +0000 (10:22 +0200)
With the doctrine migration a signal formerly located in class
SqlExpectedSchemaService has been moved to class SqlReader.
The old SqlExpectedSchemaService has been removed with issue #82148.
Slot for that moved signal should now switch to the string
literal of the class name.

Change-Id: Id1cb28b236c7025308b0f0be3f969903df4c4ea5
Resolves: #82197
Related: #82148
Releases: master
Reviewed-on: https://review.typo3.org/53801
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
Tested-by: Susanne Moog <susanne.moog@typo3.org>
typo3/sysext/core/Classes/DataHandling/DatabaseSchemaService.php
typo3/sysext/core/Classes/Database/Schema/SqlReader.php
typo3/sysext/core/ext_localconf.php
typo3/sysext/indexed_search/ext_localconf.php
typo3/sysext/install/ext_localconf.php

index 8edd8d4..7aea803 100644 (file)
@@ -26,7 +26,7 @@ class DatabaseSchemaService
      * Add l10n_state field to tables that provide localization
      *
      * @param array $sqlString Current SQL statements to be executed
-     * @return array Modified arguments of SqlExpectedSchemaService::tablesDefinitionIsBeingBuilt signal
+     * @return array Modified arguments of SqlReader::tablesDefinitionIsBeingBuilt signal
      */
     public function getLocalizationRequiredDatabaseSchema(array $sqlString)
     {
index 5df5f89..19b04cc 100644 (file)
@@ -17,7 +17,6 @@ namespace TYPO3\CMS\Core\Database\Schema;
 
 use TYPO3\CMS\Core\Utility\GeneralUtility;
 use TYPO3\CMS\Extbase\SignalSlot\Dispatcher;
-use TYPO3\CMS\Install\Service\SqlExpectedSchemaService;
 
 /**
  * Helper methods to handle raw SQL input and transform it into individual statements
@@ -144,7 +143,7 @@ class SqlReader
     {
         // Using the old class name from the install tool here to keep backwards compatibility.
         $signalReturn = $this->signalSlotDispatcher->dispatch(
-            SqlExpectedSchemaService::class,
+            'TYPO3\\CMS\\Install\\Service\\SqlExpectedSchemaService',
             'tablesDefinitionIsBeingBuilt',
             [$sqlString]
         );
index aba4f60..ea209d2 100644 (file)
@@ -71,7 +71,7 @@ $signalSlotDispatcher->connect(
 );
 
 $signalSlotDispatcher->connect(
-    \TYPO3\CMS\Install\Service\SqlExpectedSchemaService::class,
+    'TYPO3\\CMS\\Install\\Service\\SqlExpectedSchemaService',
     'tablesDefinitionIsBeingBuilt',
     \TYPO3\CMS\Core\DataHandling\DatabaseSchemaService::class,
     'getLocalizationRequiredDatabaseSchema'
index 9b71f85..4df1d6d 100644 (file)
@@ -60,7 +60,7 @@ if (isset($extConf['useMysqlFulltext']) && $extConf['useMysqlFulltext'] === '1')
     // Register schema analyzer slot to hook in required fulltext index definition
     $signalSlotDispatcher = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\SignalSlot\Dispatcher::class);
     $signalSlotDispatcher->connect(
-        \TYPO3\CMS\Install\Service\SqlExpectedSchemaService::class,
+        'TYPO3\\CMS\\Install\\Service\\SqlExpectedSchemaService',
         'tablesDefinitionIsBeingBuilt',
         \TYPO3\CMS\IndexedSearch\Service\DatabaseSchemaService::class,
         'addMysqlFulltextIndex'
index 018a585..92deb36 100644 (file)
@@ -3,13 +3,13 @@ defined('TYPO3_MODE') or die();
 
 $signalSlotDispatcher = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\SignalSlot\Dispatcher::class);
 $signalSlotDispatcher->connect(
-    \TYPO3\CMS\Install\Service\SqlExpectedSchemaService::class,
+    'TYPO3\\CMS\\Install\\Service\\SqlExpectedSchemaService',
     'tablesDefinitionIsBeingBuilt',
     \TYPO3\CMS\Core\Cache\DatabaseSchemaService::class,
     'addCachingFrameworkRequiredDatabaseSchemaForSqlExpectedSchemaService'
 );
 $signalSlotDispatcher->connect(
-    \TYPO3\CMS\Install\Service\SqlExpectedSchemaService::class,
+    'TYPO3\\CMS\\Install\\Service\\SqlExpectedSchemaService',
     'tablesDefinitionIsBeingBuilt',
     \TYPO3\CMS\Core\Category\CategoryRegistry::class,
     'addCategoryDatabaseSchemaToTablesDefinition'