interface ContextFactoryInterface (View source)

ContextFactory Interface

Methods

create(array $contextConfiguration = [])

Create the context from the given properties. If a context with those properties was already created before then the existing one is returned.

void
reset()

Clears the instances cache clearing all contexts.

getInstances()

Returns all known instances of Context.

Details

Context create(array $contextConfiguration = [])

Create the context from the given properties. If a context with those properties was already created before then the existing one is returned.

The context properties to give depend on the implementation of the context object, for the Context it should look like this:

array( 'workspaceName' => 'live', 'currentDateTime' => new \Neos\Flow\Utility\Now(), 'dimensions' => array(), 'invisibleContentShown' => false, 'removedContentShown' => false, 'inaccessibleContentShown' => false )

Parameters

array $contextConfiguration

Return Value

Context

void reset()

Clears the instances cache clearing all contexts.

Return Value

void

Context[] getInstances()

Returns all known instances of Context.

Return Value

Context[]