protected function registerAdapter($adapter): string
	{
		if($adapter instanceof AdapterInterface)
		{
			return $this->registerAdapterInstance($adapter);
		}

		[$name, $factory] = $adapter;

		return $this->registerAdapterFactory($name, $factory);
	}