private function getPlatformProvider($platform=[], EventManager $eventManager)
	{	
		if (is_null($platform)) {
			return false;
		}

		$platformId = key($platform);
		$platform = current($platform);
		if (!isset($platform['provider'])) {
			$this->connectionFailed = ':noPlatform';
			return false;
		}

		$provider = $platform['provider'];
		if (!class_exists($provider)) {
			$this->connectionFailed = ':noConnectorProvider';
			return false;
		}

		$this->preparedConnection = $platform;
		$platformProvider = new $provider($this, new EventManager());
		if (!$platformProvider instanceof PlatformProvider) {
			return false;
		}

		if (isset($platform['domain']) && !Domain::matches($platform['domain'])) {
			$eventManager->dispatchEvent('domain.notallowed', [$platformId => $platform]);
			return false;
		}

		$this->platformProvider = $platformProvider;
		$providerConnector = $this->platformProvider;
		return $providerConnector;
	}
private function getPlatformProvider($platform=[], EventManager $eventManager)
	{	
		if (is_null($platform)) {
			return false;
		}

		$platformId = key($platform);
		$platform = current($platform);
		if (!isset($platform['provider'])) {
			$this->connectionFailed = ':noPlatform';
			return false;
		}

		$provider = $platform['provider'];
		if (!class_exists($provider)) {
			$this->connectionFailed = ':noConnectorProvider';
			return false;
		}

		$this->preparedConnection = $platform;
		$platformProvider = new $provider($this, new EventManager());
		if (!$platformProvider instanceof PlatformProvider) {
			return false;
		}

		if (isset($platform['domain']) && !Domain::matches($platform['domain'])) {
			$eventManager->dispatchEvent('domain.notallowed', [$platformId => $platform]);
			return false;
		}

		$this->platformProvider = $platformProvider;
		$providerConnector = $this->platformProvider;
		return $providerConnector;
	}
private function getPlatformProvider ( $ platform = [ ] , EventManager $ eventManager ) { if ( is_null ( $ platform ) ) { return false ; } $ platformId = key ( $ platform ) ; $ platform = current ( $ platform ) ; if ( ! isset ( $ platform [ 'provider' ] ) ) { $ this -> connectionFailed = ':noPlatform' ; return false ; } $ provider = $ platform [ 'provider' ] ; if ( ! class_exists ( $ provider ) ) { $ this -> connectionFailed = ':noConnectorProvider' ; return false ; } $ this -> preparedConnection = $ platform ; $ platformProvider = new $ provider ( $ this , new EventManager ( ) ) ; if ( ! $ platformProvider instanceof PlatformProvider ) { return false ; } if ( isset ( $ platform [ 'domain' ] ) && ! Domain :: matches ( $ platform [ 'domain' ] ) ) { $ eventManager -> dispatchEvent ( 'domain.notallowed' , [ $ platformId => $ platform ] ) ; return false ; } $ this -> platformProvider = $ platformProvider ; $ providerConnector = $ this -> platformProvider ; return $ providerConnector ; }
Resolves a connector's provider and returns it's object.

@param 	$eventManager <Kit\Glider\Events\EventManager 	>
@param 	$platform <Array>
@access 	private
@return 	<Mixed>
Resolves a connector s provider and returns it s object .