Conditions | 1 |
Paths | 1 |
Total Lines | 19 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | public function get() |
||
24 | { |
||
25 | $objectManager = new ObjectManager(); |
||
26 | $configurationRepository = $objectManager->get(ConfigurationRepository::class); |
||
27 | |||
28 | /** @var \HDNET\OnpageIntegration\Domain\Model\Configuration $configuration */ |
||
29 | $configuration = $configurationRepository->findByUid(1); |
||
30 | |||
31 | $buildAuth = [ |
||
32 | |||
33 | 'api_key' => $configuration->getApiKey(), |
||
34 | 'project' => $configuration->getProjectId(), |
||
35 | |||
36 | ]; |
||
37 | |||
38 | |||
39 | |||
40 | return $buildAuth; |
||
41 | } |
||
42 | } |
||
43 |