public function newAdapter($serviceId, $mountPath, $params) { $service = $this->container->get($serviceId); $service->setMountPath($mountPath); $service->setParams($params); return $service; }