[BUGFIX] Extbase scheduler task serialization 08/23708/2
authorarjenhoekema <arjenhoekema@gmail.com>
Thu, 5 Sep 2013 07:49:11 +0000 (09:49 +0200)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Mon, 9 Sep 2013 19:48:52 +0000 (21:48 +0200)
commitf553c868fc9723810b437a15130ffd371e121671
tree18cdeca4e610a2c91f96baebd5aa8a2e14747d70
parente58969803cb6e850db46e289ecb6b7df6b04b2c7
[BUGFIX] Extbase scheduler task serialization

When using Command Controllers as scheduled tasks the Extbase
Scheduled Task is serialized. Some singleton properties like
'objectManager', 'commandManager' and 'taskExecutor' are serialized
leading to duplicates of this objects.

Added magic "__sleep" and "__wakeup" methods destructing and
re-constructing the above objects.

Resolves: #50723
Releases: 6.2, 6.1, 6.0
Change-Id: I0a84487a1d8885f75dd4b4eaf004bb0dc93645c2
Reviewed-on: https://review.typo3.org/23708
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
typo3/sysext/extbase/Classes/Scheduler/Task.php