Closed JanStorm closed 3 months ago
The exception appears to have a different class name on the version of Doctrine that's used by TYPO3v12. We'll need to handle the newer exception type, and if it isn't backwards compatible, handle both types and add the resulting warnings to the phpstan baseline.
Thanks for looking into it! The exception class was deprecated and then renamed in the newest doctrine version. I've updated the catch case to a more specific class that exists in both the older and new versions of Doctrine.
Thanks for the update and the patch!
We can ignore a missing database connection at this point. We cant do anything about a missing database connection. This Scenario is possible during first install.
In a Scenario, where flux is installed before first install, this happens:
SpooledConfigurationApplicator
then in itsprocessData
calls$this->spoolQueuedContentTypeRegistrations
in Line 71.$this->contentTypeBuilder->registerContentType
in Line 181 requires a Database Connection for registering the content types.Tested in Typo3 11.5.36 with flux 10.0.9