subdomainService->addNewSubdomain( $data->getOrganization(), $data->getSubdomain(), $data->isActive() ); } else if ($operation instanceof Put && $data->isActive()) { // Activate a subdomain $data->setActive(false); // On triche : c'est le service qui va activer ce sous-domaine, pas le processor $subdomain = $this->subdomainService->activateSubdomain($data); } else { throw new \RuntimeException('not supported', 500); } return $subdomain; } }