[FEATURE] Add public API to get ApplicationContext 18/23018/8
authorSteffen Müller <typo3@t3node.com>
Fri, 9 Aug 2013 22:09:57 +0000 (00:09 +0200)
committerHelmut Hummel <helmut.hummel@typo3.org>
Mon, 26 Aug 2013 13:42:05 +0000 (15:42 +0200)
commit89e45c261993f585649d278a845e16367468f562
treeefe7bade7c5e64b189342e096582e882216fb0b9
parent1799ce5935341f3d811a92bd4f563257c2425eda
[FEATURE] Add public API to get ApplicationContext

Application Context is initialized in Bootstrap. We need a
public API to get the current context without using the bootstrap
itself.

In Flow, the ObjectManager provides this API, but in TYPO3 CMS we
do not have this kind of ObjectManager (except in extbase).

The API call is:
\TYPO3\CMS\Core\Utility\GeneralUtility::getContext();

Resolves: #50983
Releases: 6.2
Change-Id: Ic900a503b3e2bc184d2bfd43345e72180887ef18
Reviewed-on: https://review.typo3.org/23018
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
typo3/sysext/core/Classes/Core/Bootstrap.php
typo3/sysext/core/Classes/Utility/GeneralUtility.php