PHP 클래스 Neos\Neos\Domain\Service\ContentContextFactory

See \Neos\ContentRepository\Domain\Service\ContextFactory->build for detailed explanations about the usage.
상속: extends Neos\ContentRepository\Domain\Service\ContextFactory
파일 보기 프로젝트 열기: neos/neos-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$contextImplementation string The context implementation this factory will create
$domainRepository Neos\Neos\Domain\Repository\DomainRepository
$siteRepository Neos\Neos\Domain\Repository\SiteRepository

보호된 메소드들

메소드 설명
buildContextInstance ( array $contextProperties ) : ContentContext Creates the actual Context instance.
getIdentifierSource ( array $contextProperties ) : string This creates the actual identifier and needs to be overridden by builders extending this.
mergeContextPropertiesWithDefaults ( array $contextProperties ) : array Merges the given context properties with sane defaults for the context implementation.
setDefaultSiteAndDomainFromCurrentRequest ( array $defaultContextProperties ) : array Determines the current domain and site from the request and sets the resulting values as as defaults.
validateContextProperties ( array $contextProperties ) : void

메소드 상세

buildContextInstance() 보호된 메소드

This needs to be overridden if the Builder is extended.
protected buildContextInstance ( array $contextProperties ) : ContentContext
$contextProperties array
리턴 ContentContext

getIdentifierSource() 보호된 메소드

This creates the actual identifier and needs to be overridden by builders extending this.
protected getIdentifierSource ( array $contextProperties ) : string
$contextProperties array
리턴 string

mergeContextPropertiesWithDefaults() 보호된 메소드

Merges the given context properties with sane defaults for the context implementation.
protected mergeContextPropertiesWithDefaults ( array $contextProperties ) : array
$contextProperties array
리턴 array

setDefaultSiteAndDomainFromCurrentRequest() 보호된 메소드

Determines the current domain and site from the request and sets the resulting values as as defaults.
protected setDefaultSiteAndDomainFromCurrentRequest ( array $defaultContextProperties ) : array
$defaultContextProperties array
리턴 array

validateContextProperties() 보호된 메소드

protected validateContextProperties ( array $contextProperties ) : void
$contextProperties array
리턴 void

프로퍼티 상세

$contextImplementation 보호되어 있는 프로퍼티

The context implementation this factory will create
protected string $contextImplementation
리턴 string

$domainRepository 보호되어 있는 프로퍼티

protected DomainRepository,Neos\Neos\Domain\Repository $domainRepository
리턴 Neos\Neos\Domain\Repository\DomainRepository

$siteRepository 보호되어 있는 프로퍼티

protected SiteRepository,Neos\Neos\Domain\Repository $siteRepository
리턴 Neos\Neos\Domain\Repository\SiteRepository