File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -33,21 +33,21 @@ public static function getAuthOptsV2()
3333 'base_uri ' => CommonUtils::normalizeUrl (getenv ('OS_AUTH_URL ' )),
3434 'handler ' => HandlerStack::create (),
3535 ]);
36- $ identityService = new Service ($ httpClient , new Api );
3736 return [
3837 'authUrl ' => getenv ('OS_AUTH_URL ' ),
3938 'region ' => getenv ('OS_REGION_NAME ' ),
4039 'username ' => getenv ('OS_USERNAME ' ),
4140 'password ' => getenv ('OS_PASSWORD ' ),
4241 'tenantName ' => getenv ('OS_TENANT_NAME ' ),
43- 'identityService ' => $ identityService ,
42+ 'identityService ' => new Service ( $ httpClient , new Api ) ,
4443 ];
4544 }
4645
47- public static function getAuthOpts ($ options = [])
46+ public static function getAuthOpts (array $ options = [])
4847 {
49- $ authOptions = getenv ('OS_IDENTITY_API_VERSION ' ) == '2.0 ' ?
50- self ::getAuthOptsV2 () : self ::getAuthOptsV3 ();
48+ $ authOptions = getenv ('OS_IDENTITY_API_VERSION ' ) == '2.0 '
49+ ? self ::getAuthOptsV2 ()
50+ : self ::getAuthOptsV3 ();
5151 return array_merge ($ authOptions , $ options );
5252 }
5353}
You can’t perform that action at this time.
0 commit comments