You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had one issue with the documentation. Config needed to be added to the new Handler Inject and __construct. #[Inject( HalResponseFactory::class, ResourceGenerator::class, UserServiceInterface::class, "config", )] public function __construct( protected HalResponseFactory $responseFactory, protected ResourceGenerator $resourceGenerator, protected UserServiceInterface $userService, protected array $config, ) { }
@matthewpallotta Since you created your clone of Dotkernel API, we refactored the handlers multiple times.
If you want to implement them in your project, here are the relevant PRs:
The tutorial was made for the latest version of Dotkernel API, using the refactored structure, that's why it does not mention the need for $config to be injected in the handler's constructor.
Feature Request
Summary
dotkernel/api#328
The text was updated successfully, but these errors were encountered: