| @@ 116-123 (lines=8) @@ | ||
| 113 | * |
|
| 114 | * @throws \NotificationChannels\Apn\Exceptions\ConnectionFailed |
|
| 115 | */ |
|
| 116 | private function openConnection() |
|
| 117 | { |
|
| 118 | try { |
|
| 119 | $this->client->open($this->environment, $this->certificate, $this->passPhrase); |
|
| 120 | } catch (Exception $exception) { |
|
| 121 | throw Exceptions\ConnectionFailed::create($exception); |
|
| 122 | } |
|
| 123 | } |
|
| 124 | ||
| 125 | /** |
|
| 126 | * Close the connection. |
|
| @@ 78-85 (lines=8) @@ | ||
| 75 | * @return void |
|
| 76 | * @throws \NotificationChannels\Apn\Exception\ConnectionFailed |
|
| 77 | */ |
|
| 78 | protected function openConnection() |
|
| 79 | { |
|
| 80 | try { |
|
| 81 | $this->client->open($this->environment, $this->certificate, $this->passPhrase); |
|
| 82 | } catch (Exception $exception) { |
|
| 83 | throw ConnectionFailed::create($exception); |
|
| 84 | } |
|
| 85 | } |
|
| 86 | ||
| 87 | /** |
|
| 88 | * Fetch the feedback from APNS and collect our feedback object. |
|