Skip to content

Commit

Permalink
Merge pull request #278 from dotkernel/issue-277
Browse files Browse the repository at this point in the history
Issue #277: Upgraded `dot-errorhandler` to version `4.x`
  • Loading branch information
arhimede authored Sep 4, 2024
2 parents 5da427a + 5fbd665 commit 821facb
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"dotkernel/dot-controller": "^3.4.3",
"dotkernel/dot-data-fixtures": "^1.1.3",
"dotkernel/dot-dependency-injection": "^1.0",
"dotkernel/dot-errorhandler": "^3.3.2",
"dotkernel/dot-errorhandler": "^4.0.0",
"dotkernel/dot-flashmessenger": "^3.4.2",
"dotkernel/dot-geoip": "^3.6.0",
"dotkernel/dot-helpers": "^3.4.2",
Expand Down
4 changes: 2 additions & 2 deletions config/autoload/error-handling.global.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

declare(strict_types=1);

use Laminas\Log\Formatter\Json;
use Laminas\Log\Logger;
use Dot\Log\Formatter\Json;
use Dot\Log\Logger;

return [
'dot-errorhandler' => [
Expand Down
2 changes: 1 addition & 1 deletion src/Admin/src/Controller/AdminController.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@
use Dot\Controller\AbstractActionController;
use Dot\DependencyInjection\Attribute\Inject;
use Dot\FlashMessenger\FlashMessengerInterface;
use Dot\Log\Logger;
use Fig\Http\Message\RequestMethodInterface;
use Fig\Http\Message\StatusCodeInterface;
use Laminas\Authentication\AuthenticationServiceInterface;
use Laminas\Authentication\Exception\ExceptionInterface;
use Laminas\Diactoros\Response\HtmlResponse;
use Laminas\Diactoros\Response\JsonResponse;
use Laminas\Diactoros\Response\RedirectResponse;
use Laminas\Log\Logger;
use MaxMind\Db\Reader\InvalidDatabaseException;
use Mezzio\Router\RouterInterface;
use Mezzio\Template\TemplateRendererInterface;
Expand Down
5 changes: 3 additions & 2 deletions test/Unit/Admin/Controller/AdminControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
use Admin\App\Plugin\FormsPlugin;
use AdminTest\Unit\UnitTest;
use Dot\FlashMessenger\FlashMessengerInterface;
use Dot\Log\Logger;
use Laminas\Authentication\AuthenticationServiceInterface;
use Laminas\Log\Logger;
use Mezzio\Router\RouterInterface;
use Mezzio\Template\TemplateRendererInterface;
use PHPUnit\Framework\MockObject\Exception;
Expand All @@ -26,7 +26,8 @@ public function testWillCreate(): void
$logger = new Logger([
'writers' => [
'FileWriter' => [
'name' => 'null',
'name' => 'null',
'priority' => Logger::ALERT,
],
],
]);
Expand Down

0 comments on commit 821facb

Please sign in to comment.