Architecture and request · Question 2 of 12

In which file does an extension register its own PSR-15 middlewares for TYPO3?

1 answer is correct. Easy

Show answer

Answer

  • A Configuration/RequestMiddlewares.php

Explanation

TYPO3 reads Configuration/RequestMiddlewares.php from all loaded extensions and builds the middleware order for each stack (frontend or backend) from it. For each middleware you specify a unique identifier, the class and, if needed, before and after so that it runs at the right position in the chain. Services.yaml is a common misconception: it controls dependency injection, i.e. how the middleware class is instantiated, but not whether and where it is hooked into the request flow. Configuration/Backend/Routes.php registers backend routes, not middlewares.

Certifications & exams

Which exam comes next?

You can already practise for 19 exams, and 21 are up for a vote. See all certifications with their official information, cast your vote or suggest your exam.

See all certifications