Skip to content

Commit ceafe4d

Browse files
committed
Add Faultline\Instance
1 parent 5b9f5a7 commit ceafe4d

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ $notifier = new Faultline\Notifier([
3535
]
3636
]);
3737

38+
// Set global notifier instance.
39+
Faultline\Instance::set($notifier);
40+
3841
// Register error and exception handlers.
3942
$handler = new Faultline\ErrorHandler($notifier);
4043
$handler->register();

src/Instance.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
3+
namespace Faultline;
4+
5+
class Instance extends \Airbrake\Instance
6+
{
7+
8+
}

0 commit comments

Comments
 (0)