Skip to content

Commit 601e18c

Browse files
committed
Parameterize type of service in catalog so it can be specified when building a service object.
1 parent 87d3116 commit 601e18c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/OpenCloud/Common/Service/ServiceBuilder.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ class ServiceBuilder
3737
public static function factory(ClientInterface $client, $class, array $options = array())
3838
{
3939
$name = isset($options['name']) ? $options['name'] : null;
40+
$type = isset($options['type']) ? $options['type'] : null;
4041
$urlType = isset($options['urlType']) ? $options['urlType'] : null;
4142

4243
if (isset($options['region'])) {
@@ -47,6 +48,6 @@ public static function factory(ClientInterface $client, $class, array $options =
4748
$region = null;
4849
}
4950

50-
return new $class($client, null, $name, $region, $urlType);
51+
return new $class($client, $type, $name, $region, $urlType);
5152
}
5253
}

0 commit comments

Comments
 (0)