Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tutorial on how to also retrieve resource by a unique property, other than UUID #61

Closed
alexmerlin opened this issue Oct 18, 2024 · 3 comments
Assignees

Comments

@alexmerlin
Copy link
Member

Feature Request

Q A
New Feature yes
RFC no
BC Break no

Summary

dotkernel/api#328

@arhimede arhimede pinned this issue Oct 18, 2024
@arhimede
Copy link
Member

solve in #62

@alexmerlin alexmerlin unpinned this issue Oct 29, 2024
@matthewpallotta
Copy link

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, ) { }

@arhimede arhimede reopened this Nov 5, 2024
@alexmerlin
Copy link
Member Author

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants