File tree Expand file tree Collapse file tree 4 files changed +7
-6
lines changed Expand file tree Collapse file tree 4 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 2828 *
2929 */
3030 'skip_errors ' => [
31- '\ Symfony\Component\HttpKernel\Exception\NotFoundHttpException::class '
31+ 'Symfony\Component\HttpKernel\Exception\NotFoundHttpException ' ,
3232 ],
3333
3434 /*
Original file line number Diff line number Diff line change @@ -18,10 +18,6 @@ class HttpClient
1818 */
1919 private $ projectSecret ;
2020
21- //Local
22- // private const POST_EXCEPTION = 'http://larvabug.local/api/v1/exception';
23- // private const VALIDATE_CREDENTIALS = 'http://larvabug.local/api/v1/validate/credentials';
24- // private const POST_FEEDBACK = 'http://larvabug.local/api/v1/feedback/submit';
2521
2622 //Development
2723 private const POST_EXCEPTION = 'http://dev.larvabug.com/api/v1/exception ' ;
Original file line number Diff line number Diff line change @@ -127,6 +127,11 @@ private function skipError($class)
127127 return false ;
128128 }
129129
130+ public function shouldCollectFeedback (\Exception $ exception )
131+ {
132+ return !$ this ->skipError (get_class ($ exception ));
133+ }
134+
130135 /**
131136 * Validate env credentials from larvabug
132137 *
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ private function publishConfig()
5454 {
5555 if (function_exists ('config_path ' )) {
5656 $ this ->publishes ([
57- __DIR__ . '../../config/larvabug.php ' => config_path ('larvabug.php ' ),
57+ __DIR__ . '/ ../../config/larvabug.php ' => config_path ('larvabug.php ' ),
5858 ]);
5959 }
6060 }
You can’t perform that action at this time.
0 commit comments