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 |
|