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

Experiment: FEATURE: Introduce SpecialResponsesSupport #3298

Draft
wants to merge 2 commits into
base: temporary-mvc-refactoring-target-branch
Choose a base branch
from

Conversation

mhsdesign
Copy link
Member

@mhsdesign mhsdesign commented Jan 30, 2024

wip introduction of the SpecialResponsesSupport

write tests ,...

Upgrade instructions

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

…essing any state

While looking where the `$this->request` and  `$this->response` variables are used i found that they leak also into other objects. So a lot of things are stateful:

- $this->request
- $this->response
- $this->controllerContext
- $this->uriBuilder
- $this->arguments

with that many properties, its just a question of time until one of our utility traits like `SpecialResponsesSupport` accesses - accidentally e.g. in a bugfix - any of them and were doomed.

We should take reinforcements like making the trait's methods static
@mhsdesign mhsdesign force-pushed the feature/SpecialResponsesSupportHelperForController branch from 695ce85 to 2cd48d6 Compare February 3, 2024 13:11
@mhsdesign mhsdesign changed the title TASK: Make SpecialResponsesSupport static to avoid accidentally accessing any state FEATURE: Introduce SpecialResponsesSupport Feb 3, 2024
@mhsdesign mhsdesign changed the title FEATURE: Introduce SpecialResponsesSupport Experiment: FEATURE: Introduce SpecialResponsesSupport Feb 26, 2024
@mhsdesign mhsdesign force-pushed the temporary-mvc-refactoring-target-branch branch 2 times, most recently from 080c854 to f37ce2c Compare March 3, 2024 09:15
neos-bot pushed a commit to neos/flow that referenced this pull request Sep 12, 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