‪TYPO3CMS  9.5
TYPO3\CMS\Extbase\Core\Bootstrap Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Core\Bootstrap:
TYPO3\CMS\Extbase\Core\BootstrapInterface

Public Member Functions

 initialize ($configuration)
 
 initializeConfiguration ($configuration)
 
 configureObjectManager ($isInternalCall=false)
 
 initializePersistence ()
 
string run ($content, $configuration)
 
ResponseInterface handleBackendRequest (ServerRequestInterface $request)
 

Public Attributes

TYPO3 CMS Frontend ContentObject ContentObjectRenderer $cObj
 

Protected Member Functions

 initializeObjectManager ()
 
string handleRequest ()
 
ResponseInterface convertExtbaseResponseToPsr7Response (WebResponse $extbaseResponse)
 
 resetSingletons ()
 

Protected Attributes

TYPO3 CMS Extbase Configuration ConfigurationManager $configurationManager
 
TYPO3 CMS Extbase Object ObjectManagerInterface $objectManager
 
TYPO3 CMS Extbase Persistence Generic PersistenceManager $persistenceManager
 

Detailed Description

Creates a request an dispatches it to the controller which was specified by TS Setup, flexForm and returns the content.

This class is the main entry point for extbase extensions.

Definition at line 30 of file Bootstrap.php.

Member Function Documentation

◆ configureObjectManager()

TYPO3\CMS\Extbase\Core\Bootstrap::configureObjectManager (   $isInternalCall = false)

Configures the object manager object configuration from config.tx_extbase.objects and plugin.tx_foo.objects

Parameters
bool$isInternalCall‪Set to true by Bootstrap, not by extensions
See also
initialize()
Deprecated:
‪since TYPO3 v9, will be removed in TYPO3 v10.0

Definition at line 114 of file Bootstrap.php.

Referenced by TYPO3\CMS\Extbase\Core\Bootstrap\initialize().

◆ convertExtbaseResponseToPsr7Response()

ResponseInterface TYPO3\CMS\Extbase\Core\Bootstrap::convertExtbaseResponseToPsr7Response ( WebResponse  $extbaseResponse)
protected

Converts a Extbase response object into a PSR-7 Response

Parameters
WebResponse$extbaseResponse
Returns
‪ResponseInterface

Definition at line 228 of file Bootstrap.php.

Referenced by TYPO3\CMS\Extbase\Core\Bootstrap\handleBackendRequest().

◆ handleBackendRequest()

ResponseInterface TYPO3\CMS\Extbase\Core\Bootstrap::handleBackendRequest ( ServerRequestInterface  $request)

Entrypoint for backend modules, handling PSR-7 requests/responses

Parameters
ServerRequestInterface$request
Returns
‪ResponseInterface

Definition at line 193 of file Bootstrap.php.

References TYPO3\CMS\Extbase\Core\Bootstrap\convertExtbaseResponseToPsr7Response(), TYPO3\CMS\Extbase\Core\Bootstrap\initialize(), and TYPO3\CMS\Extbase\Core\Bootstrap\resetSingletons().

◆ handleRequest()

string TYPO3\CMS\Extbase\Core\Bootstrap::handleRequest ( )
protected
Exceptions

Definition at line 162 of file Bootstrap.php.

References TYPO3\CMS\Extbase\Core\Bootstrap\resetSingletons().

Referenced by TYPO3\CMS\Extbase\Core\Bootstrap\run().

◆ initialize()

TYPO3\CMS\Extbase\Core\Bootstrap::initialize (   $configuration)

Explicitly initializes all necessary Extbase objects by invoking the various initialize* methods.

Usually this method is only called from unit tests or other applications which need a more fine grained control over the initialization and request handling process. Most other applications just call the run() method.

Parameters
array$configuration‪The TS configuration array
Exceptions

Definition at line 61 of file Bootstrap.php.

References TYPO3\CMS\Extbase\Core\Bootstrap\configureObjectManager(), TYPO3\CMS\Extbase\Core\Bootstrap\initializeConfiguration(), TYPO3\CMS\Extbase\Core\Bootstrap\initializeObjectManager(), TYPO3\CMS\Extbase\Core\Bootstrap\initializePersistence(), and TYPO3\CMS\Core\Core\Environment\isCli().

Referenced by TYPO3\CMS\Extbase\Core\Bootstrap\handleBackendRequest(), and TYPO3\CMS\Extbase\Core\Bootstrap\run().

◆ initializeConfiguration()

TYPO3\CMS\Extbase\Core\Bootstrap::initializeConfiguration (   $configuration)

Initializes the Object framework.

Parameters
array$configuration
See also
initialize()

Definition at line 97 of file Bootstrap.php.

Referenced by TYPO3\CMS\Extbase\Core\Bootstrap\initialize().

◆ initializeObjectManager()

TYPO3\CMS\Extbase\Core\Bootstrap::initializeObjectManager ( )
protected

Initializes the Object framework.

See also
initialize()

Definition at line 85 of file Bootstrap.php.

Referenced by TYPO3\CMS\Extbase\Core\Bootstrap\initialize().

◆ initializePersistence()

TYPO3\CMS\Extbase\Core\Bootstrap::initializePersistence ( )

Initializes the persistence framework

See also
initialize()

Definition at line 139 of file Bootstrap.php.

Referenced by TYPO3\CMS\Extbase\Core\Bootstrap\initialize().

◆ resetSingletons()

TYPO3\CMS\Extbase\Core\Bootstrap::resetSingletons ( )
protected

Resets global singletons for the next plugin

Definition at line 245 of file Bootstrap.php.

Referenced by TYPO3\CMS\Extbase\Core\Bootstrap\handleBackendRequest(), and TYPO3\CMS\Extbase\Core\Bootstrap\handleRequest().

◆ run()

string TYPO3\CMS\Extbase\Core\Bootstrap::run (   $content,
  $configuration 
)

Runs the the Extbase Framework by resolving an appropriate Request Handler and passing control to it. If the Framework is not initialized yet, it will be initialized.

Parameters
string$content‪The content. Not used
array$configuration‪The TS configuration array
Returns
‪string $content The processed content

Implements TYPO3\CMS\Extbase\Core\BootstrapInterface.

Definition at line 152 of file Bootstrap.php.

References TYPO3\CMS\Extbase\Core\Bootstrap\handleRequest(), and TYPO3\CMS\Extbase\Core\Bootstrap\initialize().

Member Data Documentation

◆ $cObj

TYPO3 CMS Frontend ContentObject ContentObjectRenderer TYPO3\CMS\Extbase\Core\Bootstrap::$cObj

Back reference to the parent content object This has to be public as it is set directly from TYPO3

Definition at line 37 of file Bootstrap.php.

◆ $configurationManager

TYPO3 CMS Extbase Configuration ConfigurationManager TYPO3\CMS\Extbase\Core\Bootstrap::$configurationManager
protected

Definition at line 41 of file Bootstrap.php.

◆ $objectManager

TYPO3 CMS Extbase Object ObjectManagerInterface TYPO3\CMS\Extbase\Core\Bootstrap::$objectManager
protected

Definition at line 45 of file Bootstrap.php.

◆ $persistenceManager

TYPO3 CMS Extbase Persistence Generic PersistenceManager TYPO3\CMS\Extbase\Core\Bootstrap::$persistenceManager
protected

Definition at line 49 of file Bootstrap.php.