Skip to content

Commit 16abaaa

Browse files
authored
Merge pull request #87 from zio-mitch/main
Update create-book-module.md
2 parents 2e18076 + d6f0ab8 commit 16abaaa

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

docs/book/v5/tutorials/create-book-module.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ declare(strict_types=1);
522522

523523
namespace Api\Book\Handler;
524524

525-
use Api\App\Handler\HandlerTrait;
525+
use Api\App\Handler\AbstractHandler;
526526
use Api\Book\InputFilter\BookInputFilter;
527527
use Api\Book\Service\BookServiceInterface;
528528
use Fig\Http\Message\StatusCodeInterface;
@@ -533,10 +533,8 @@ use Psr\Http\Message\ServerRequestInterface;
533533
use Psr\Http\Server\RequestHandlerInterface;
534534
use Dot\DependencyInjection\Attribute\Inject;
535535

536-
class BookHandler implements RequestHandlerInterface
536+
class BookHandler extends AbstractHandler implements RequestHandlerInterface
537537
{
538-
use HandlerTrait;
539-
540538
#[Inject(
541539
HalResponseFactory::class,
542540
ResourceGenerator::class,

0 commit comments

Comments
 (0)