AntonyThorpe /
rollbar
| 1 | <?php |
||
| 2 | |||
| 3 | namespace AntonyThorpe\Rollbar; |
||
| 4 | |||
| 5 | use SilverStripe\Core\Config\Configurable; |
||
| 6 | |||
| 7 | /** |
||
| 8 | * Rollbar |
||
| 9 | */ |
||
| 10 | class Rollbar |
||
| 11 | { |
||
| 12 | use Configurable; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Access Token created at rollbar.com |
||
| 16 | * @config |
||
| 17 | */ |
||
| 18 | private static string $client_token = ''; |
||
|
0 ignored issues
–
show
introduced
by
Loading history...
|
|||
| 19 | |||
| 20 | /** |
||
| 21 | * Operate/pause communications with Rollbar |
||
| 22 | * @config |
||
| 23 | */ |
||
| 24 | private static bool $show = true; |
||
|
0 ignored issues
–
show
|
|||
| 25 | |||
| 26 | /** |
||
| 27 | * When in the dev environment, show Rollbar in the template |
||
| 28 | * @config |
||
| 29 | */ |
||
| 30 | private static bool $show_on_dev = false; |
||
|
0 ignored issues
–
show
|
|||
| 31 | |||
| 32 | /** |
||
| 33 | * When in the test environment, show Rollbar in the template |
||
| 34 | * @config |
||
| 35 | */ |
||
| 36 | private static bool $show_on_test = false; |
||
|
0 ignored issues
–
show
|
|||
| 37 | |||
| 38 | /** |
||
| 39 | * When in the live environment, show Rollbar in the template |
||
| 40 | * @config |
||
| 41 | */ |
||
| 42 | private static bool $show_on_live = true; |
||
|
0 ignored issues
–
show
|
|||
| 43 | } |
||
| 44 |