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

Fix module configuration to ensure services are mapped correctly #79

Conversation

weierophinney
Copy link
Contributor

  • Input filters, in particular, were mapped such that the POST/PATCH input filters were invalid
  • Legacy Apigility classes were mapped in such a way that Laminas service names might never match.
    The solution for this is to always list Apigility classes in quotations, and ensure that any ::class notation is reserved for real classes and/or Laminas pseudo-classes.

Fixes #71

- Input filters, in particular, were mapped such that the POST/PATCH input filters were invalid
- Legacy Apigility classes were mapped in such a way that Laminas service names might never match.
  The solution for this is to always list Apigility classes in quotations, and ensure that any `::class` notation is reserved for real classes and/or Laminas pseudo-classes.

Fixes laminas-api-tools#71

Signed-off-by: Matthew Weier O'Phinney <[email protected]>
@weierophinney weierophinney added this to the 1.10.3 milestone Jan 14, 2022
@weierophinney weierophinney added the Bug Something isn't working label Jan 14, 2022
Resolves new Psalm errors by referring to all pseudo-classes (only input filters at this point) via strings instead of `::class` notation.

Signed-off-by: Matthew Weier O'Phinney <[email protected]>
@weierophinney weierophinney merged commit 6bbe152 into laminas-api-tools:1.10.x Jan 14, 2022
@weierophinney weierophinney deleted the fix/71-invalid-service-namespaces branch January 14, 2022 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Class 'Laminas\ApiTools\Admin\Controller\InputFilter\RpcService\PostInputFilter' not found
1 participant