[TASK] Modernize code in the Mail system
This is just a general cleanup and tidying to use constructor promotion, typed properties, and other modern language niceties in the Mail system. It's mainly to setup for future patches to reduce the jitter in further refactor work. Resolves: #96715 Releases: main Change-Id: I0c05db4d2ad3d43de53342511d9a7c6712f0cf73 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/73256 Tested-by:core-ci <typo3@b13.com> Tested-by:
Stefan Bürk <stefan@buerk.tech> Tested-by:
Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by:
Stefan Bürk <stefan@buerk.tech> Reviewed-by:
Christian Kuhn <lolli@schwarzbu.ch>
Showing
- Build/phpstan/phpstan-baseline.neon 0 additions, 5 deletionsBuild/phpstan/phpstan-baseline.neon
- typo3/sysext/core/Classes/Mail/Event/AfterMailerInitializationEvent.php 1 addition, 7 deletions...ore/Classes/Mail/Event/AfterMailerInitializationEvent.php
- typo3/sysext/core/Classes/Mail/FileSpool.php 13 additions, 48 deletionstypo3/sysext/core/Classes/Mail/FileSpool.php
- typo3/sysext/core/Classes/Mail/FluidEmail.php 9 additions, 22 deletionstypo3/sysext/core/Classes/Mail/FluidEmail.php
- typo3/sysext/core/Classes/Mail/MailMessage.php 3 additions, 8 deletionstypo3/sysext/core/Classes/Mail/MailMessage.php
- typo3/sysext/core/Classes/Mail/Mailer.php 19 additions, 42 deletionstypo3/sysext/core/Classes/Mail/Mailer.php
- typo3/sysext/core/Classes/Mail/MboxTransport.php 12 additions, 25 deletionstypo3/sysext/core/Classes/Mail/MboxTransport.php
- typo3/sysext/core/Classes/Mail/MemorySpool.php 4 additions, 18 deletionstypo3/sysext/core/Classes/Mail/MemorySpool.php
- typo3/sysext/core/Classes/Mail/TransportFactory.php 4 additions, 14 deletionstypo3/sysext/core/Classes/Mail/TransportFactory.php
- typo3/sysext/core/Tests/Unit/Mail/MailerTest.php 27 additions, 46 deletionstypo3/sysext/core/Tests/Unit/Mail/MailerTest.php
Please register or sign in to comment