public function bake() { if ($this->handlers !== null) { return; } $entries = []; foreach ($this->handlerSlots as $list) { foreach ($list as $hash => $listener) { $entries[$hash] = $listener; } } $this->handlers = $entries; }