Bug #86851
closedCore relates to SqlExpectedSchemaService which has been dropped
0%
Description
Hello Core-Team,
I just found following lines in Core:
$signalSlotDispatcher->connect( 'TYPO3\\CMS\\Install\\Service\\SqlExpectedSchemaService', 'tablesDefinitionIsBeingBuilt', \TYPO3\CMS\Core\Category\CategoryRegistry::class, 'addCategoryDatabaseSchemaToTablesDefinition' );
But as of breaking change 82148:
https://docs.typo3.org/typo3cms/extensions/core/Changelog/9.0/Breaking-82148-DownloadSQLDumpDroppedInEM.html
you have removed SqlExpectedSchemaService. So, the lines from above can't work, right?
Stefan
Updated by Sybille Peters about 6 years ago
The above code still works (signal gets emitted and caught), but it is weird.
Additionally, the Changelog contradicts itself:
- Changelog 9.4. says: use signal tablesDefinitionIsBeingBuilt of class \TYPO3\CMS\Install\Service\ SqlExpectedSchemaService (https://docs.typo3.org/typo3cms/extensions/core/latest/Changelog/9.4/Deprecation-85462-SignalTablesDefinitionIsBeingBuilt.html)
- Changelog 9.0 dropped this class: TYPO3\CMS\Install\Service\ SqlExpectedSchemaService (https://docs.typo3.org/typo3cms/extensions/core/Changelog/9.0/Breaking-82148-DownloadSQLDumpDroppedInEM.html)
Updated by Sybille Peters about 6 years ago
Also, it looks like the functionality (use signal to make dynamic database changes) has been dropped without any replacement ...?
Updated by Florian Wessels over 5 years ago
Hi,
functionality is still there as
TYPO3\CMS\Core\Database\Schema\SqlReader::emitTablesDefinitionIsBeingBuiltSignalis still using the signal class name
'TYPO3\\CMS\\Install\\Service\\SqlExpectedSchemaService'.
This is very confusing.
Maybe the signal slot should better use its real SqlReader class name ;-)
Updated by Gerrit Code Review over 5 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/59874
Updated by Mathias Brodala over 5 years ago
- Status changed from Under Review to Rejected
The current code works as intended to keep backwards compatibility.