ContextFactoryInterface
interface ContextFactoryInterface (View source)
ContextFactory Interface
Methods
Create the context from the given properties. If a context with those properties was already created before then the existing one is returned.
Clears the instances cache clearing all contexts.
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 )
void
reset()
Clears the instances cache clearing all contexts.
Context[]
getInstances()
Returns all known instances of Context.