@@ 107-113 (lines=7) @@ | ||
104 | $apiUser = $event->getApiUser(); |
|
105 | $apiKey = $event->getApiKey(); |
|
106 | ||
107 | if (null !== $this->logger) { |
|
108 | $logId = $this->logger->start(); |
|
109 | $this->sessionId = $this->soapClient->login($apiUser, $apiKey); |
|
110 | $this->logger->stop($logId, $this->connection, 'login', 'session: ' . $this->sessionId); |
|
111 | } else { |
|
112 | $this->sessionId = $this->soapClient->login($apiUser, $apiKey); |
|
113 | } |
|
114 | ||
115 | $event = new SecurityEvent($this, $apiUser, $apiKey, $this->sessionId); |
|
116 | $this->dispatcher->dispatch(MagentoEvents::POST_LOGIN, $event); |
|
@@ 216-222 (lines=7) @@ | ||
213 | ||
214 | $actions = $this->getActions($queue); |
|
215 | ||
216 | if (null !== $this->logger) { |
|
217 | $logId = $this->logger->start(); |
|
218 | $results = $this->soapClient->multiCall($this->sessionId, $actions); |
|
219 | $this->logger->stop($logId, $this->connection, 'multicall', 'queue: ' . count($actions) . ' action(s)'); |
|
220 | } else { |
|
221 | $results = $this->soapClient->multiCall($this->sessionId, $actions); |
|
222 | } |
|
223 | ||
224 | $event = new MultiCallTransportEvent($this, $queue, $results); |
|
225 | $this->dispatcher->dispatch(MagentoEvents::POST_MULTI_CALL, $event); |