Skip to content

Commit bf983c2

Browse files
authored
Merge pull request #2 from larvabug/issue_with_publish_config
Issue with publishing config fixed
2 parents d4847f7 + 37f0856 commit bf983c2

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

config/larvabug.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
*
2929
*/
3030
'skip_errors' => [
31-
'\Symfony\Component\HttpKernel\Exception\NotFoundHttpException::class'
31+
'Symfony\Component\HttpKernel\Exception\NotFoundHttpException',
3232
],
3333

3434
/*

src/Client/HttpClient.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff 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';

src/Handler/LarvaBugExceptionHandler.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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
*

src/Provider/BootServices.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)