@@ -15,6 +15,8 @@ the TSFE as ``typo3.page_repository`` and the ``cObj`` on the TSFE as
1515
1616The ``TYPO3_DB `` is available as ``typo3.db `` service.
1717
18+ The ``BE_USER `` is available as ``typo3.backend_user `` service.
19+
1820The ``TYPO3\CMS\Core\Resource\FileRepository `` for the FAL is available as
1921``typo3.file_repository ``.
2022
@@ -35,18 +37,18 @@ Instead you can create services from TYPO3 globals with the factory pattern:
3537 .. code-block :: yaml
3638
3739 services :
38- app.typo3.backend_user :
39- class : TYPO3\CMS\Core\Authentication\BackendUserAuthentication
40+ app.typo3.frontend_user :
41+ class : TYPO3\CMS\Core\Authentication\FrontendUserAuthentication
4042 factory : ["@typo3", getGlobal]
4143 arguments :
42- - BE_USER
44+ - FE_USER
4345
4446 .. code-block :: xml
4547
4648 <services >
47- <service id =" app.typo3.backend_user " class =" TYPO3\CMS\Core\Authentication\BackendUserAuthentication " >
49+ <service id =" app.typo3.frontend_user " class =" TYPO3\CMS\Core\Authentication\FrontendUserAuthentication " >
4850 <factory service =" typo3" method =" getGlobal" />
49- <argument >BE_USER </argument >
51+ <argument >FE_USER </argument >
5052 </service >
5153 </services >
5254
@@ -56,14 +58,14 @@ Instead you can create services from TYPO3 globals with the factory pattern:
5658 use Symfony\Component\ExpressionLanguage\Expression;
5759
5860 $definition = new Definition(
59- 'TYPO3\\CMS\\Core\\Authentication\\BackendUserAuthentication ',
60- ['BE_USER ']
61+ 'TYPO3\\CMS\\Core\\Authentication\\FrontendUserAuthentication ',
62+ ['FE_USER ']
6163 ]);
6264 $definition->setFactory([
6365 new Reference('typo3'),
6466 'getGlobal'
6567 ]);
66- $container->setDefinition('app.typo3.backend_user ', $definition);
68+ $container->setDefinition('app.typo3.frontend_user ', $definition);
6769
6870 The same it possible with classes from ``GeneralUtility::makeInstance() ``, but
6971the must be set shared to false, so ``makeInstance() `` is still in control
0 commit comments