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

Public Member Functions

 __construct (ContainerInterface $container, ConfigurationManagerInterface $configurationManager, PersistenceManagerInterface $persistenceManager, RequestHandlerResolver $requestHandlerResolver, CacheService $cacheService)
 
 initialize (array $configuration)
 
 initializeConfiguration (array $configuration)
 
string run (string $content, array $configuration)
 
ResponseInterface handleBackendRequest (ServerRequestInterface $request)
 

Public Attributes

TYPO3 CMS Frontend ContentObject ContentObjectRenderer $cObj
 

Static Public Attributes

static array $persistenceClasses = array( )
 

Protected Member Functions

string handleRequest ()
 
ResponseInterface convertExtbaseResponseToPsr7Response (ExtbaseResponse $extbaseResponse)
 
 resetSingletons ()
 

Protected Attributes

ContainerInterface $container
 
ConfigurationManagerInterface $configurationManager
 
PersistenceManagerInterface $persistenceManager
 
TYPO3 CMS Extbase Mvc RequestHandlerResolver $requestHandlerResolver
 
TYPO3 CMS Extbase Service CacheService $cacheService
 

Private Member Functions

 initializePersistenceClassesConfiguration ()
 
 initializeRequestHandlersConfiguration ()
 

Detailed Description

Creates a request and 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 42 of file Bootstrap.php.

Constructor & Destructor Documentation

◆ __construct()

Member Function Documentation

◆ convertExtbaseResponseToPsr7Response()

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

Converts an Extbase response object into a PSR-7 Response

Parameters
ExtbaseResponse$extbaseResponse
Returns
‪ResponseInterface

Definition at line 234 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 204 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
Returns
‪string

Definition at line 172 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 ( array  $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 99 of file Bootstrap.php.

References TYPO3\CMS\Extbase\Core\Bootstrap\initializeConfiguration(), TYPO3\CMS\Extbase\Core\Bootstrap\initializePersistenceClassesConfiguration(), TYPO3\CMS\Extbase\Core\Bootstrap\initializeRequestHandlersConfiguration(), 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 ( array  $configuration)

Initializes the Object framework.

Parameters
array$configuration
See also
initialize()

Definition at line 121 of file Bootstrap.php.

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

◆ initializePersistenceClassesConfiguration()

TYPO3\CMS\Extbase\Core\Bootstrap::initializePersistenceClassesConfiguration ( )
private
Exceptions

Definition at line 138 of file Bootstrap.php.

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

◆ initializeRequestHandlersConfiguration()

TYPO3\CMS\Extbase\Core\Bootstrap::initializeRequestHandlersConfiguration ( )
private
Exceptions

Definition at line 148 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 251 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 ( string  $content,
array  $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 163 of file Bootstrap.php.

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

Member Data Documentation

◆ $cacheService

TYPO3 CMS Extbase Service CacheService TYPO3\CMS\Extbase\Core\Bootstrap::$cacheService
protected

Definition at line 73 of file Bootstrap.php.

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

◆ $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 53 of file Bootstrap.php.

◆ $configurationManager

ConfigurationManagerInterface TYPO3\CMS\Extbase\Core\Bootstrap::$configurationManager
protected

Definition at line 61 of file Bootstrap.php.

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

◆ $container

ContainerInterface TYPO3\CMS\Extbase\Core\Bootstrap::$container
protected

Definition at line 57 of file Bootstrap.php.

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

◆ $persistenceClasses

array TYPO3\CMS\Extbase\Core\Bootstrap::$persistenceClasses = array( )
static

Definition at line 46 of file Bootstrap.php.

◆ $persistenceManager

PersistenceManagerInterface TYPO3\CMS\Extbase\Core\Bootstrap::$persistenceManager
protected

Definition at line 65 of file Bootstrap.php.

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

◆ $requestHandlerResolver

TYPO3 CMS Extbase Mvc RequestHandlerResolver TYPO3\CMS\Extbase\Core\Bootstrap::$requestHandlerResolver
protected

Definition at line 69 of file Bootstrap.php.

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