Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
36 | public function createAkeneoPimClient(AkeneoPimConfig $config): AkeneoPimClientInterface |
||
37 | { |
||
38 | $akeneoPimClientBuilder = $this->akeneoPimSdkFactory->createAkeneoPimClientBuilder($config->getHost()); |
||
39 | |||
40 | $akeneoPimClientBuilder->setHttpClient( |
||
41 | $this->akeneoPimSdkFactory->createHttpClient() |
||
42 | ); |
||
43 | |||
44 | $akeneoPimClient = $akeneoPimClientBuilder->buildAuthenticatedByPassword( |
||
45 | $config->getClientId(), |
||
46 | $config->getClientSecret(), |
||
47 | $config->getUsername(), |
||
48 | $config->getPassword() |
||
49 | ); |
||
50 | |||
51 | return $akeneoPimClient; |
||
52 | } |
||
54 |