TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Extbase\Core\Bootstrap Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Core\Bootstrap:
TYPO3\CMS\Extbase\Core\BootstrapInterface Tx_Extbase_Core_Bootstrap

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

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! 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 22 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 125 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 76 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 145 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 99 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 169 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 155 of file Bootstrap.php.

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

◆ isInCliMode()

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

Definition at line 224 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

Returns
void

Definition at line 216 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 182 of file Bootstrap.php.

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

Member Data Documentation

◆ $cacheManager

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

Definition at line 52 of file Bootstrap.php.

◆ $cObj

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

Definition at line 30 of file Bootstrap.php.

◆ $configurationManager

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

Definition at line 42 of file Bootstrap.php.

◆ $context

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

Definition at line 37 of file Bootstrap.php.

◆ $objectManager

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

Definition at line 47 of file Bootstrap.php.

◆ $persistenceManager

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

Definition at line 62 of file Bootstrap.php.

◆ $reflectionService

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

Definition at line 57 of file Bootstrap.php.