Bug #50983

Feature #49988: Backport ApplicationContext from Flow

Add public API to get ApplicationContext

Added by Steffen Müller almost 2 years ago. Updated almost 2 years ago.

Status:Resolved Start date:2013-08-10
Priority:Should have Due date:
Assigned To:Steffen Müller % Done:

100%

Category:Default Spent time: -
Target version:6.2.0
TYPO3 Version:6.2 Is Regression:
PHP Version: Sprint Focus:
Complexity:

Description

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();


Related issues

related to Core - Task #52678: Rename API for ApplicationContext Resolved 2013-10-11

Associated revisions

Revision 89e45c26
Added by Steffen Müller almost 2 years ago

[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

History

#1 Updated by Gerrit Code Review almost 2 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23018

#2 Updated by Gerrit Code Review almost 2 years ago

Patch set 2 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23018

#3 Updated by Gerrit Code Review almost 2 years ago

Patch set 3 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23018

#4 Updated by Gerrit Code Review almost 2 years ago

Patch set 4 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23018

#5 Updated by Gerrit Code Review almost 2 years ago

Patch set 5 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23018

#6 Updated by Ernesto Baschny almost 2 years ago

  • Category set to Default
  • Target version set to 6.2.0

#7 Updated by Gerrit Code Review almost 2 years ago

Patch set 6 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23018

#8 Updated by Gerrit Code Review almost 2 years ago

Patch set 7 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23018

#9 Updated by Steffen Müller almost 2 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF