Bootstrap

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.

Table of Contents

Properties

$persistenceClasses  : array<string|int, mixed>
$cacheService  : CacheService
$cObj  : ContentObjectRenderer|null
Set by UserContentObject (USER) via setContentObjectRenderer() in frontend
$configurationManager  : ConfigurationManagerInterface
$container  : ContainerInterface
$dispatcher  : Dispatcher
$extbaseRequestBuilder  : RequestBuilder
$persistenceManager  : PersistenceManagerInterface
$requestHandlerResolver  : RequestHandlerResolver

Methods

__construct()  : mixed
handleBackendRequest()  : ResponseInterface
Entrypoint for backend modules, handling PSR-7 requests/responses.
initialize()  : void
Explicitly initializes all necessary Extbase objects by invoking the various initialize* methods.
initializeConfiguration()  : void
Initializes the Object framework.
run()  : string
Runs the the Extbase Framework by resolving an appropriate Request Handler and passing control to it.
setContentObjectRenderer()  : mixed
Called for frontend plugins from UserContentObject via ContentObjectRenderer->callUserFunction().
clearCacheOnError()  : void
Clear cache of current page on error. Needed because we want a re-evaluation of the data.
handleFrontendRequest()  : string
isExtbaseRequestCacheable()  : bool
resetSingletons()  : void
Resets global singletons for the next plugin

Properties

$persistenceClasses

public static array<string|int, mixed> $persistenceClasses = []

$container

protected ContainerInterface $container

Methods

__construct()

public __construct(ContainerInterface $container, ConfigurationManagerInterface $configurationManager, PersistenceManagerInterface $persistenceManager, RequestHandlerResolver $requestHandlerResolver, CacheService $cacheService, Dispatcher $dispatcher, RequestBuilder $extbaseRequestBuilder) : mixed
Parameters
$container : ContainerInterface
$configurationManager : ConfigurationManagerInterface
$persistenceManager : PersistenceManagerInterface
$requestHandlerResolver : RequestHandlerResolver
$cacheService : CacheService
$dispatcher : Dispatcher
$extbaseRequestBuilder : RequestBuilder

handleBackendRequest()

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

public handleBackendRequest(ServerRequestInterface $request) : ResponseInterface

Creates an Extbase Request, dispatches it and then returns the Response

Parameters
$request : ServerRequestInterface
Internal
Return values
ResponseInterface

initialize()

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

public initialize(array<string|int, mixed> $configuration) : void

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
$configuration : array<string|int, mixed>

The TS configuration array

Tags
throws
RuntimeException
see
run()

initializeConfiguration()

Initializes the Object framework.

public initializeConfiguration(array<string|int, mixed> $configuration) : void
Parameters
$configuration : array<string|int, mixed>
Internal
Tags
see
initialize()

run()

Runs the the Extbase Framework by resolving an appropriate Request Handler and passing control to it.

public run(string $content, array<string|int, mixed> $configuration[, ServerRequestInterface|null $request = null ]) : string

If the Framework is not initialized yet, it will be initialized.

This is usually used in Frontend plugins.

Parameters
$content : string

The content. Not used

$configuration : array<string|int, mixed>

The TS configuration array

$request : ServerRequestInterface|null = null
Return values
string

$content The processed content

clearCacheOnError()

Clear cache of current page on error. Needed because we want a re-evaluation of the data.

protected clearCacheOnError() : void

handleFrontendRequest()

protected handleFrontendRequest(ServerRequestInterface $request) : string
Parameters
$request : ServerRequestInterface
Return values
string

resetSingletons()

Resets global singletons for the next plugin

protected resetSingletons() : void

        
On this page

Search results