Actions
Bug #85318
closedScheduler tasks: the constructor is never executed
Status:
Rejected
Priority:
Must have
Assignee:
-
Category:
scheduler
Target version:
-
Start date:
2018-06-20
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
8
PHP Version:
7.0
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
When defining a scheduler task class by inheriting from \TYPO3\CMS\Scheduler\Task\AbstractTask
, an existing constructor does never get executed.
The execute
method is not static, but anyway it is called with the class being instantiated in a "normal" way, i.e. executing a constructor.
What to expect:
When I define a constructor in a class inherited from \TYPO3\CMS\Scheduler\Task\AbstractTask
it must be executed to allow for variable instantiation.
Example:
class ExampleTask extends \TYPO3\CMS\Scheduler\Task\AbstractTask
{
public function __construct()
{
parent::__construct();
// This point is never reached, even a debug-breakpoint here would not be respected.
DebuggerUtility::var_dump($this);
exit;
}
}
Actions