public function run() { $this->stopped = false; while (!$this->stopped) { $this->callbacks->executeAll($this); if (!$this->base->dispatch()) { break; } } }