From d6f0ab8ca716916233a24d33b13c998d6343ef73 Mon Sep 17 00:00:00 2001 From: Michele Carino Date: Mon, 10 Mar 2025 17:31:11 +0100 Subject: [PATCH] Fixes: #87, legacy trait usage --- docs/book/v5/tutorials/create-book-module.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/docs/book/v5/tutorials/create-book-module.md b/docs/book/v5/tutorials/create-book-module.md index f5480e9..a3c0f47 100644 --- a/docs/book/v5/tutorials/create-book-module.md +++ b/docs/book/v5/tutorials/create-book-module.md @@ -522,7 +522,7 @@ declare(strict_types=1); namespace Api\Book\Handler; -use Api\App\Handler\HandlerTrait; +use Api\App\Handler\AbstractHandler; use Api\Book\InputFilter\BookInputFilter; use Api\Book\Service\BookServiceInterface; use Fig\Http\Message\StatusCodeInterface; @@ -533,10 +533,8 @@ use Psr\Http\Message\ServerRequestInterface; use Psr\Http\Server\RequestHandlerInterface; use Dot\DependencyInjection\Attribute\Inject; -class BookHandler implements RequestHandlerInterface +class BookHandler extends AbstractHandler implements RequestHandlerInterface { - use HandlerTrait; - #[Inject( HalResponseFactory::class, ResourceGenerator::class,