public function __construct(FrameworkTool $tool) { $this->inner = new InnerEmailLogService($tool); $tool->on('HTTP_QUERY_PROCESSED', [$this, 'flushAll']); }