passportService = new PassportService(); $this->productMetaBox = new ProductMetaBox($this->passportService); $this->settingsPage = new SettingsPage(); } public function boot(): void { $this->passportService->registerHooks(); $this->productMetaBox->registerHooks(); $this->settingsPage->registerHooks(); } public function getPassportService(): PassportService { return $this->passportService; } }