|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace Honeybadger\HoneybadgerLaravel\Commands; |
|
4
|
|
|
|
|
5
|
|
|
class SuccessMessage |
|
6
|
|
|
{ |
|
7
|
|
|
/** |
|
8
|
|
|
* Success message without links to notices. |
|
9
|
|
|
* |
|
10
|
|
|
* @return string |
|
11
|
|
|
*/ |
|
12
|
|
|
public static function withoutLinkToNotices() : string |
|
13
|
|
|
{ |
|
14
|
|
|
return <<<'EX' |
|
15
|
|
|
|
|
16
|
|
|
⚡ --- Honeybadger is installed! ----------------------------------------------- |
|
17
|
|
|
If you ever need help: |
|
18
|
|
|
|
|
19
|
|
|
- Check out the documentation: https://docs.honeybadger.io/lib/php/index.html |
|
20
|
|
|
- Email the 'badgers: [email protected] |
|
21
|
|
|
|
|
22
|
|
|
Most people don't realize that Honeybadger is a small, bootstrapped company. We |
|
23
|
|
|
really couldn't do this without you. Thank you for allowing us to do what we |
|
24
|
|
|
love: making developers awesome. |
|
25
|
|
|
|
|
26
|
|
|
Happy 'badgering! |
|
27
|
|
|
|
|
28
|
|
|
Sincerely, |
|
29
|
|
|
Ben, Josh and Starr |
|
30
|
|
|
https://www.honeybadger.io/about/ |
|
31
|
|
|
⚡ --- End -------------------------------------------------------------------- |
|
32
|
|
|
|
|
33
|
|
|
EX; |
|
34
|
|
|
} |
|
35
|
|
|
|
|
36
|
|
|
/** |
|
37
|
|
|
* Success message with links to notices. |
|
38
|
|
|
* |
|
39
|
|
|
* @param string $noticeId |
|
40
|
|
|
* @return string |
|
41
|
|
|
*/ |
|
42
|
|
|
public static function withLinkToNotice(string $noticeId) : string |
|
43
|
|
|
{ |
|
44
|
|
|
$message = <<<'EX' |
|
45
|
|
|
|
|
46
|
|
|
⚡ --- Honeybadger is installed! ----------------------------------------------- |
|
47
|
|
|
Good news: You're one deploy away from seeing all of your exceptions in |
|
48
|
|
|
Honeybadger. For now, we've generated a test exception for you: |
|
49
|
|
|
|
|
50
|
|
|
https://app.honeybadger.io/notice/%s |
|
51
|
|
|
|
|
52
|
|
|
If you ever need help: |
|
53
|
|
|
|
|
54
|
|
|
- Check out the documentation: https://docs.honeybadger.io/lib/php/index.html |
|
55
|
|
|
- Email the 'badgers: [email protected] |
|
56
|
|
|
|
|
57
|
|
|
Most people don't realize that Honeybadger is a small, bootstrapped company. We |
|
58
|
|
|
really couldn't do this without you. Thank you for allowing us to do what we |
|
59
|
|
|
love: making developers awesome. |
|
60
|
|
|
|
|
61
|
|
|
Happy 'badgering! |
|
62
|
|
|
|
|
63
|
|
|
Sincerely, |
|
64
|
|
|
Ben, Josh and Starr |
|
65
|
|
|
https://www.honeybadger.io/about/ |
|
66
|
|
|
⚡ --- End -------------------------------------------------------------------- |
|
67
|
|
|
|
|
68
|
|
|
EX; |
|
69
|
|
|
|
|
70
|
|
|
return sprintf($message, $noticeId); |
|
71
|
|
|
} |
|
72
|
|
|
} |
|
73
|
|
|
|