[FEATURE] Backport ApplicationContext from Flow 69/22269/7
authorSteffen Müller <typo3@t3node.com>
Fri, 12 Jul 2013 18:56:44 +0000 (20:56 +0200)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Wed, 17 Jul 2013 09:19:06 +0000 (11:19 +0200)
commit8fdab46dbd167b1969dcb30b823f3f3e591d03a2
tree71025e625be6f92ed654d470a0068b863a04c48a
parentab79dbbccbc288f9e1f1b1eebc6355593519904f
[FEATURE] Backport ApplicationContext from Flow

Flow has the notion of ApplicationContext which provides a unique
API for handling contexts.

This API allow us to provide default configuration sets for
particular contexts. For example having decent logging in
production context vs. full reports in development context.

The context is set using the TYPO3_CONTEXT environment variable.
If not set the context defaults to "Production".

The context can be queried using:
\TYPO3\CMS\Core\Core\Bootstrap::getInstance()->getContext();

Resolves: #49988
Releases: 6.2
Change-Id: Id953052f2846c740f27a83931adfb64b0d8d9169
Reviewed-on: https://review.typo3.org/22269
Reviewed-by: Thomas Maroschik
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
_.htaccess
typo3/sysext/core/Classes/Core/ApplicationContext.php [new file with mode: 0644]
typo3/sysext/core/Classes/Core/Bootstrap.php
typo3/sysext/core/Tests/Unit/Core/ApplicationContextTest.php [new file with mode: 0644]