static protected function createResources($definitions) {
		$resources = [];
		
		foreach ($definitions as $name => $options) {
			if (! isset($options['type'])) {
				throw new InvalidOptions('Type of resource must be specified');
			}
			
			$class = self::NAMESPACE_RESOURCE . '\\' . ucfirst($options['type']);
			unset($options['type']);
			
			$resources[$name] = new $class($options);
		}
		
		return $resources;
	}
static protected function createResources($definitions) {
		$resources = [];
		
		foreach ($definitions as $name => $options) {
			if (! isset($options['type'])) {
				throw new InvalidOptions('Type of resource must be specified');
			}
			
			$class = self::NAMESPACE_RESOURCE . '\\' . ucfirst($options['type']);
			unset($options['type']);
			
			$resources[$name] = new $class($options);
		}
		
		return $resources;
	}
static protected function createResources ( $ definitions ) { $ resources = [ ] ; foreach ( $ definitions as $ name => $ options ) { if ( ! isset ( $ options [ 'type' ] ) ) { throw new InvalidOptions ( 'Type of resource must be specified' ) ; } $ class = self :: NAMESPACE_RESOURCE . '\\' . ucfirst ( $ options [ 'type' ] ) ; unset ( $ options [ 'type' ] ) ; $ resources [ $ name ] = new $ class ( $ options ) ; } return $ resources ; }
Create the resources by the definitions

@param  array $definitions
@return Resource\ResourceInterface[]
@throws InvalidOptions
Create the resources by the definitions