Skip to content

[TASK] Refactor FrontendAwareEnvironment and adjust tests#4589

Open
froemken wants to merge 2 commits into
TYPO3-Solr:mainfrom
froemken:refactorFrontendAwareEnvironment
Open

[TASK] Refactor FrontendAwareEnvironment and adjust tests#4589
froemken wants to merge 2 commits into
TYPO3-Solr:mainfrom
froemken:refactorFrontendAwareEnvironment

Conversation

@froemken
Copy link
Copy Markdown
Contributor

  • Refactor FrontendAwareEnvironment to use constructor property promotion.
  • Remove unused SingletonInterface implementation and related usages.
  • Replace GeneralUtility::makeInstance calls with dependency injection.
  • Add frontend_simulation service configuration in Services.yaml.
  • Simplify TsfeTest by using an explicitly instantiated FrontendAwareEnvironment.

@dkd-kaehm dkd-kaehm force-pushed the refactorFrontendAwareEnvironment branch from 4ec3d6e to 970d6e7 Compare May 1, 2026 09:30
*
* Convenience method to extract the page ID from the PageInformation attribute.
*/
public function getPageIdFromRequest(ServerRequest $request): int
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure this is not needed anymore? It's not part of the commit message and in this patch this method was only found ones. I don't see from where it is/was called.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please decide.
If you ask me: I did not change anything on that branch.

froemken added 2 commits May 8, 2026 13:56
- Refactor `FrontendAwareEnvironment` to use constructor property promotion.
- Remove unused `SingletonInterface` implementation and related usages.
- Replace `GeneralUtility::makeInstance` calls with dependency injection.
- Add `frontend_simulation` service configuration in `Services.yaml`.
- Simplify `TsfeTest` by using an explicitly instantiated `FrontendAwareEnvironment`.
- Update Services.yaml to set `public: true` for `FrontendSimulation`.
@dkd-kaehm dkd-kaehm force-pushed the refactorFrontendAwareEnvironment branch from 970d6e7 to 4dce8e6 Compare May 8, 2026 11:56
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

Successfully merging this pull request may close these issues.

2 participants