public function setHooks(PluginHooksService $hooks) { $this->hooks = $hooks; $this->hooks->setLogger($this); }