[TASK] Don't use destructor as shutdown function 77/24277/4
authorThorsten Kahler <thorsten.kahler@typo3.org>
Wed, 2 Oct 2013 14:48:29 +0000 (16:48 +0200)
committerMarkus Klein <klein.t3@mfc-linz.at>
Sun, 10 Nov 2013 11:40:10 +0000 (12:40 +0100)
commit338728811cda9d0452a8971aab11a292e3d71271
treea1cc563799d2dc5fc88fbb0c4b8a6249efcd2d4e
parent652d9c2dab94e922f0b9f0ff8ff43e1f4d2d9082
[TASK] Don't use destructor as shutdown function

GeneralUtility::makeInstanceService() registers service classes'
destructors as shutdown functions. This has two drawbacks:
* destructors are called twice usually
* service classes need to have destructors

The shutdown function for temp file cleanup in AbstractService is
registered on demand instead.

Change-Id: I0c41d821dc2279eeb126badf306f73d3b53b3010
Resolves: #52463
Releases: 6.2
Reviewed-on: https://review.typo3.org/24277
Reviewed-by: Sascha Egerer
Tested-by: Sascha Egerer
Reviewed-by: Markus Klein
Tested-by: Markus Klein
typo3/sysext/core/Classes/Service/AbstractService.php
typo3/sysext/core/Classes/Utility/GeneralUtility.php