PHP Interface Neos\ContentRepository\Domain\Service\ContextFactoryInterface

Datei anzeigen Open project: neos/neos-development-collection Interface Usage Examples

Public Methods

Method Description
create ( array $contextConfiguration = [] ) : Context Create the context from the given properties. If a context with those properties was already created before then the existing one is returned.
getInstances ( ) : array Returns all known instances of Context.
reset ( ) : void Clears the instances cache clearing all contexts.

Method Details

create() public method

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 )
public create ( array $contextConfiguration = [] ) : Context
$contextConfiguration array
return Context

getInstances() public method

Returns all known instances of Context.
public getInstances ( ) : array
return array

reset() public method

Clears the instances cache clearing all contexts.
public reset ( ) : void
return void