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

TASK: Deprecate Flow's RequestInterface #3295

Closed

Conversation

mhsdesign
Copy link
Member

@mhsdesign mhsdesign commented Jan 30, 2024

Not to be confused with the psr requests interface.

TLTR:

Since the separation of http and cli requests the interface is completely unused. And strict types against its only implementation, the ActionRequest make it impossible to implement a custom request.


Initially the interface was introduced with 2a26925 at beginning of time. At that time this was done probably to be able to type against the interface instead of the common Request class, that the Cli and Web Request both extended.

With the removal of many methods in its interface 8c40ff2 and with the full separation of action and cli requests #1552 the interface became useless.

The dispatcher and controller interface are both typed against the ActionRequest and so it's impossible to implement a custom request.

Upgrade instructions

Please reference the ActionRequest instead in typehints.

Review instructions

Checklist

  • Code follows the PSR-2 coding style
  • Tests have been created, run and adjusted as needed
  • The PR is created against the lowest maintained branch
  • Reviewer - PR Title is brief but complete and starts with FEATURE|TASK|BUGFIX
  • Reviewer - The first section explains the change briefly for change-logs
  • Reviewer - Breaking Changes are marked with !!! and have upgrade-instructions

Not to be confused with the psr requests interface.

TLTR:

Since the separation of http and cli requests
the interface is completely unused. And strict types against
its only implementation, the ActionRequest make it
impossible to implement a custom request.

_Initially_ the interface was introduced with neos@2a26925 at beginning of time. At that time this was done probably to be able to type against the interface instead of the abstract `Request` class, that the Cli and Web Request both extended.

With the removal of many methods in its interface neos@8c40ff2 and with the full separation of action and cli requests neos#1552 the interface became useless.

The dispatcher and controller interface are both typed against the `ActionRequest` and so it's impossible to implement a custom request.
@mhsdesign
Copy link
Member Author

Will be part of #3301, where we go one step further to remove the interface

@mhsdesign mhsdesign closed this Mar 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant