[DOCS] 7.5 Docs Part 3/4
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Documentation / Changelog / master / needs_to_be_merged_into_github / Important-69846-HaveEIDsWithPSR-7WithoutControllerInterface.rst
1 ====================================================================
2 Important: #69846 - Have eIDs with PSR-7 without ControllerInterface
3 ====================================================================
4
5 Description
6 ===========
7
8 In order to allow the same logic as with the routing and the direct information
9 which method to call, implementing ``ControllerInterface`` is not mandatory anymore.
10
11 Remove the ``implements ControllerInterface`` instruction in the affected class. The former ``processRequest``
12 method may (and should) be changed to:
13
14 .. code-block:: php
15
16 public function anyMethodNameYouLike(ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response) {
17 }
18
19 Please note that the ``$response`` object is now passed into the method directly, thus you must not create a new object
20 by ``$response = GeneralUtility::makeInstance(Response::class);`` any more.
21
22 The eID_include registration in :file:`ext_localconf.php` must be changed in such case to
23
24 .. code-block:: php
25
26 $GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['identifier'] = \Foo\Bar::class . '::anyMethodNameYouLike';
27