protected function getServicesByModule($module) { $services = ['rest' => $this->discoverServicesByModule($module, $this->restConfig), 'rpc' => $this->discoverServicesByModule($module, $this->rpcConfig)]; return $services; }