File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 7
7
/**
8
8
* Represents the OpenStack Identity v2 API.
9
9
*
10
- * @internal
11
10
* @package OpenStack\Identity\v2
12
11
*/
13
12
class Api implements ApiInterface
Original file line number Diff line number Diff line change 2
2
3
3
namespace OpenStack \Identity \v2 ;
4
4
5
+ use GuzzleHttp \ClientInterface ;
5
6
use OpenStack \Common \Auth \IdentityService ;
6
7
use OpenStack \Common \Service \AbstractService ;
7
8
use OpenStack \Identity \v2 \Models \Catalog ;
14
15
*/
15
16
class Service extends AbstractService implements IdentityService
16
17
{
18
+ public static function factory (ClientInterface $ client )
19
+ {
20
+ return new static ($ client , new Api ());
21
+ }
22
+
17
23
public function authenticate (array $ options = [])
18
24
{
19
25
$ definition = $ this ->api ->postToken ();
You can’t perform that action at this time.
0 commit comments