We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 16abaaa + 823f194 commit ad0a7b3Copy full SHA for ad0a7b3
1 file changed
docs/book/v5/tutorials/create-book-module.md
@@ -536,16 +536,16 @@ use Dot\DependencyInjection\Attribute\Inject;
536
class BookHandler extends AbstractHandler implements RequestHandlerInterface
537
{
538
#[Inject(
539
- HalResponseFactory::class,
540
- ResourceGenerator::class,
541
BookServiceInterface::class,
542
"config"
+ HalResponseFactory::class,
+ ResourceGenerator::class,
543
)]
544
public function __construct(
545
- protected HalResponseFactory $responseFactory,
546
- protected ResourceGenerator $resourceGenerator,
547
protected BookServiceInterface $bookService,
548
protected array $config
+ protected ?HalResponseFactory $responseFactory = null,
+ protected ?ResourceGenerator $resourceGenerator = null,
549
) {
550
}
551
0 commit comments