Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Lines | 0 |
Ratio | 0 % |
Tests | 12 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
41 | 1 | public function create($schema) |
|
42 | { |
||
43 | 1 | $configuration = $this->configurationProvider->getConfiguration(); |
|
44 | |||
45 | 1 | $client = $this->clientInstantiator->instantiateClient( |
|
46 | 1 | $configuration->getBaseUri().sprintf(self::WSDL_PATH, $schema, $configuration->getSession()) |
|
47 | 1 | ); |
|
48 | |||
49 | 1 | $client->setSchema($schema); |
|
50 | 1 | $client->setConfiguration($configuration); |
|
51 | 1 | $client->setHttpHeaders(array( |
|
52 | 1 | 'X-Security-Token' => $configuration->getSecurity(), |
|
53 | 1 | 'cookie' => '__sessiontoken=' . $configuration->getSession(), |
|
54 | 1 | )); |
|
55 | |||
56 | 1 | return $client; |
|
57 | } |
||
58 | } |
||
59 |