PHP Interface Neos\ContentRepository\Domain\Service\ContextFactoryInterface

Afficher le fichier Open project: neos/neos-development-collection Interface Usage Examples

Méthodes publiques

Méthode 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 méthode

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
Résultat Context

getInstances() public méthode

Returns all known instances of Context.
public getInstances ( ) : array
Résultat array

reset() public méthode

Clears the instances cache clearing all contexts.
public reset ( ) : void
Résultat void