TYPO3 CMS  TYPO3_7-6
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)
 
 configureObjectManager ()
 
 initializePersistence ()
 
 run ($content, $configuration)
 

Public Attributes

 $cObj
 

Protected Member Functions

 initializeObjectManager ()
 
 initializeCache ()
 
 initializeReflection ()
 
 resetSingletons ()
 
 isInCliMode ()
 

Protected Attributes

 $context
 
 $configurationManager
 
 $objectManager
 
 $cacheManager
 
 $reflectionService
 
 $persistenceManager
 

Detailed Description

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

This class is the main entry point for extbase extensions.

Definition at line 23 of file Bootstrap.php.

Member Function Documentation

◆ configureObjectManager()

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

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

Returns
void
See also
initialize()

Definition at line 129 of file Bootstrap.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance().

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

◆ 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$configurationThe TS configuration array
Exceptions

Definition at line 77 of file Bootstrap.php.

References TYPO3\CMS\Extbase\Core\Bootstrap\configureObjectManager(), TYPO3\CMS\Extbase\Core\Bootstrap\initializeCache(), TYPO3\CMS\Extbase\Core\Bootstrap\initializeObjectManager(), TYPO3\CMS\Extbase\Core\Bootstrap\initializePersistence(), TYPO3\CMS\Extbase\Core\Bootstrap\initializeReflection(), and TYPO3\CMS\Extbase\Core\Bootstrap\isInCliMode().

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

◆ initializeCache()

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

Initializes the cache framework

Returns
void
See also
initialize()

Definition at line 150 of file Bootstrap.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance().

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

◆ initializeObjectManager()

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

Initializes the Object framework.

Returns
void
See also
initialize()

Definition at line 101 of file Bootstrap.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance().

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

◆ initializePersistence()

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

Initializes the persistence framework

Returns
void
See also
initialize()

Definition at line 176 of file Bootstrap.php.

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

◆ initializeReflection()

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

Initializes the Reflection Service

Returns
void
See also
initialize()

Definition at line 161 of file Bootstrap.php.

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

◆ isInCliMode()

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

◆ resetSingletons()

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

Resets global singletons for the next plugin

Returns
void

Definition at line 230 of file Bootstrap.php.

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

◆ run()

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$contentThe content. Not used
array$configurationThe TS configuration array
Returns
string $content The processed content

Implements TYPO3\CMS\Extbase\Core\BootstrapInterface.

Definition at line 190 of file Bootstrap.php.

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

Member Data Documentation

◆ $cacheManager

TYPO3\CMS\Extbase\Core\Bootstrap::$cacheManager
protected

Definition at line 53 of file Bootstrap.php.

◆ $cObj

TYPO3\CMS\Extbase\Core\Bootstrap::$cObj

Definition at line 31 of file Bootstrap.php.

◆ $configurationManager

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

Definition at line 43 of file Bootstrap.php.

◆ $context

TYPO3\CMS\Extbase\Core\Bootstrap::$context
protected

Definition at line 38 of file Bootstrap.php.

◆ $objectManager

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

Definition at line 48 of file Bootstrap.php.

◆ $persistenceManager

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

Definition at line 63 of file Bootstrap.php.

◆ $reflectionService

TYPO3\CMS\Extbase\Core\Bootstrap::$reflectionService
protected

Definition at line 58 of file Bootstrap.php.