public function registerProvider($id, $provider)
	{
		if (is_array($provider)) {
			$provider['id'] = $id;
			$provider = Yii::createObject($provider);
		}
		if (!($provider instanceof ProviderInterface)) {
			throw new InvalidConfigException("Invalid provider provided to key provider component");
		}
		$this->providers[$id] = $provider;
	}