[BUGFIX] Extbase scheduler task serialization 34/23634/3
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:19 +0000 (21:48 +0200)
commit5e98799a0a066cfe5db3aaf55051ee14649d9067
tree44fff9ead8a110ceef296a6cbf1fccf624f37dd7
parent429f36e2f348da185616ab8aaf54414553f0ff90
[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/23634
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Philipp Gampe
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
typo3/sysext/extbase/Classes/Scheduler/Task.php