-
-
Notifications
You must be signed in to change notification settings - Fork 837
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
The "Nelmio\ApiDocBundle\Processor\MapRequestPayloadProcessor" class implements "OpenApi\Processors\ProcessorInterface" that is deprecated[Bug]: #2324
Comments
I think you can't do anything about it yourself (other then propose some code changes in nelmio of course). As it is just a deprecation message you shouldn't need to worry about it yet |
A few weeks ago I tried to fix this but it seems to be more complex than it seems to fix this deprecation. I couldn't really figure out how to replace this with the new methods provided by swagger-php. A PR is always welcome :) |
@DjordyKoert Hi! I don't understand why this is a problem? The ProcessorInterface was empty so it was not usefull, but it doesn't force you to use the Pipeline... For me you can simply remove this from your three Processors : # remove this
use OpenApi\Processors\ProcessorInterface
# remove the implements
final class (...) implements ProcessorInterface And in your ApiDocGenerator : # remove this
use OpenApi\Processors\ProcessorInterface
# keep only array
* @return array<ProcessorInterface|callable> The array of processors Or you can make your own ProcessorInterface, in the Processor directory with this in it : public function __invoke(Analysis $analysis): void and modify the 4 Have a nice day! |
Yup that's my bad. I looked too deep into it and wanted to also fully remove all deprecated method calls at the same time (which is what I was struggling with). Fix ready in #2332 |
Version
master
Description
Hi, I have this deprecated message
The "Nelmio\ApiDocBundle\Processor\MapRequestPayloadProcessor" class implements "OpenApi\Processors\ProcessorInterface" that is deprecated. How i can solve It please ?
JSON OpenApi
JSON OpenApi
Replace this text with your JSON (`bin/console nelmio:apidoc:dump`)
Additional context
No response
The text was updated successfully, but these errors were encountered: