Skip to content

Commit 4eb4423

Browse files
committed
changes
1 parent 2fb814d commit 4eb4423

File tree

6 files changed

+6
-103
lines changed

6 files changed

+6
-103
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
All notable changes to `:package_name` will be documented in this file
44

5-
## 1.0.0 - 201X-XX-XX
5+
## 1.0.0 - 20XX-XX-XX
66

77
- initial release

CONTRIBUTING.md

Lines changed: 0 additions & 55 deletions
This file was deleted.

LICENSE.md

Lines changed: 0 additions & 21 deletions
This file was deleted.

README.md

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -29,24 +29,3 @@ echo $skeleton->echoPhrase('Hello, BeyondCode!');
2929
``` bash
3030
composer test
3131
```
32-
33-
### Changelog
34-
35-
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
36-
37-
## Contributing
38-
39-
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
40-
41-
### Security
42-
43-
If you discover any security related issues, please email marcel@beyondco.de instead of using the issue tracker.
44-
45-
## Credits
46-
47-
- [Marcel Pociot](https://github.com/:author_username)
48-
- [All Contributors](../../contributors)
49-
50-
## License
51-
52-
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

config/descom_lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
return [
44
'notification_manager' => [
5-
'url' => "http://notification-manager.descom.es/api",
5+
'url' => "http://notification-manager.descom.es/api/action",
66
'token' => ""
77
]
88
];

src/Services/NotificationManager/NotificationManager.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ public function setClient(Client $client)
4141
* @param [type] $data
4242
* @return void
4343
*/
44-
public function send($function, $data)
44+
public function send($data)
4545
{
4646
try {
4747
$response = $this->client->request(
4848
'POST',
49-
$this->url . '/' . $function,
49+
$this->url,
5050
[
5151
'headers' => [
5252
'Accept' => 'application/json',
@@ -64,9 +64,9 @@ public function send($function, $data)
6464
if ($response->getStatusCode() == 503) {
6565
throw new TemporaryException("Temporal error", 503);
6666
}
67-
throw new PermanentException("Permanent error", 503);
67+
throw new PermanentException("Permanent error", $response->getStatusCode());
6868
} catch (RequestException $e) {
69-
throw new TemporaryException($e->getMessage(), 503);
69+
throw new TemporaryException($e->getMessage(), $e->getCode());
7070
}
7171
}
7272
}

0 commit comments

Comments
 (0)