0, 'name' => '', ); $defConfig = array_merge($defConfig, $parameters); $profile = $filter->clean($defConfig['profile'], 'int'); $name = $filter->clean($defConfig['name'], 'string'); // We need a valid profile ID if ($profile <= 0) { $profile = 1; } // We need a uuid if (empty($name)) { throw new \RuntimeException('The database name is required', 500); } $session = Application::getInstance()->getContainer()->segment; $session->set('profile', $profile); // Load the configuration Platform::getInstance()->load_configuration($profile); /** @var \Solo\Model\Multidb $model */ $model = new Multidb(); return $model->remove($name); } }