Refer to 'ContextFactoryInterface' instead of 'ContextFactory' when
injecting this factory into your own class.
buildContextInstance()
защищенный Метод
This needs to be overridden if the Builder is extended.
The context properties to give depend on the implementation of the context object, for the
Neos\ContentRepository\Domain\Service\Context it should look like this:
array(
'workspaceName' => 'live',
'currentDateTime' => new \Neos\Flow\Utility\Now(),
'dimensions' => array(...),
'targetDimensions' => array('language' => 'de', 'persona' => 'Lisa'),
'invisibleContentShown' => FALSE,
'removedContentShown' => FALSE,
'inaccessibleContentShown' => FALSE
)
This array also shows the defaults that get used if you don't provide a certain property.
public create ( array $contextProperties = [] ) : Context |
$contextProperties |
array |
|
Результат |
Context |
|
mergeContextPropertiesWithDefaults()
защищенный Метод
Merges the given context properties with sane defaults for the context implementation.
mergeTargetDimensionContextProperties()
защищенный Метод
validateContextProperties()
защищенный Метод
$contentDimensionRepository защищенное свойство
protected ContentDimensionRepository,Neos\ContentRepository\Domain\Repository $contentDimensionRepository |
Результат |
Neos\ContentRepository\Domain\Repository\ContentDimensionRepository |
|
$contextImplementation защищенное свойство
The context implementation this factory will create
protected string $contextImplementation |
Результат |
string |
|
$contextInstances защищенное свойство
protected array $contextInstances |
Результат |
array |
|
$securityContext защищенное свойство
protected Context,Neos\Flow\Security $securityContext |
Результат |
Neos\Flow\Security\Context |
|