Skip to content

Commit 821facb

Browse files
authored
Merge pull request #278 from dotkernel/issue-277
Issue #277: Upgraded `dot-errorhandler` to version `4.x`
2 parents 5da427a + 5fbd665 commit 821facb

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"dotkernel/dot-controller": "^3.4.3",
3535
"dotkernel/dot-data-fixtures": "^1.1.3",
3636
"dotkernel/dot-dependency-injection": "^1.0",
37-
"dotkernel/dot-errorhandler": "^3.3.2",
37+
"dotkernel/dot-errorhandler": "^4.0.0",
3838
"dotkernel/dot-flashmessenger": "^3.4.2",
3939
"dotkernel/dot-geoip": "^3.6.0",
4040
"dotkernel/dot-helpers": "^3.4.2",

config/autoload/error-handling.global.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
declare(strict_types=1);
44

5-
use Laminas\Log\Formatter\Json;
6-
use Laminas\Log\Logger;
5+
use Dot\Log\Formatter\Json;
6+
use Dot\Log\Logger;
77

88
return [
99
'dot-errorhandler' => [

src/Admin/src/Controller/AdminController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@
2424
use Dot\Controller\AbstractActionController;
2525
use Dot\DependencyInjection\Attribute\Inject;
2626
use Dot\FlashMessenger\FlashMessengerInterface;
27+
use Dot\Log\Logger;
2728
use Fig\Http\Message\RequestMethodInterface;
2829
use Fig\Http\Message\StatusCodeInterface;
2930
use Laminas\Authentication\AuthenticationServiceInterface;
3031
use Laminas\Authentication\Exception\ExceptionInterface;
3132
use Laminas\Diactoros\Response\HtmlResponse;
3233
use Laminas\Diactoros\Response\JsonResponse;
3334
use Laminas\Diactoros\Response\RedirectResponse;
34-
use Laminas\Log\Logger;
3535
use MaxMind\Db\Reader\InvalidDatabaseException;
3636
use Mezzio\Router\RouterInterface;
3737
use Mezzio\Template\TemplateRendererInterface;

test/Unit/Admin/Controller/AdminControllerTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
use Admin\App\Plugin\FormsPlugin;
1111
use AdminTest\Unit\UnitTest;
1212
use Dot\FlashMessenger\FlashMessengerInterface;
13+
use Dot\Log\Logger;
1314
use Laminas\Authentication\AuthenticationServiceInterface;
14-
use Laminas\Log\Logger;
1515
use Mezzio\Router\RouterInterface;
1616
use Mezzio\Template\TemplateRendererInterface;
1717
use PHPUnit\Framework\MockObject\Exception;
@@ -26,7 +26,8 @@ public function testWillCreate(): void
2626
$logger = new Logger([
2727
'writers' => [
2828
'FileWriter' => [
29-
'name' => 'null',
29+
'name' => 'null',
30+
'priority' => Logger::ALERT,
3031
],
3132
],
3233
]);

0 commit comments

Comments
 (0)