| @@ 497-514 (lines=18) @@ | ||
| 494 | * |
|
| 495 | * @return \eZ\Publish\API\Repository\ContentTypeService |
|
| 496 | */ |
|
| 497 | public function getContentTypeService() |
|
| 498 | { |
|
| 499 | if ($this->contentTypeService !== null) { |
|
| 500 | return $this->contentTypeService; |
|
| 501 | } |
|
| 502 | ||
| 503 | $this->contentTypeService = new ContentTypeService( |
|
| 504 | $this, |
|
| 505 | $this->persistenceHandler->contentTypeHandler(), |
|
| 506 | $this->persistenceHandler->userHandler(), |
|
| 507 | $this->getDomainMapper(), |
|
| 508 | $this->getContentTypeDomainMapper(), |
|
| 509 | $this->getFieldTypeRegistry(), |
|
| 510 | $this->serviceSettings['contentType'] |
|
| 511 | ); |
|
| 512 | ||
| 513 | return $this->contentTypeService; |
|
| 514 | } |
|
| 515 | ||
| 516 | /** |
|
| 517 | * Get Content Location Service. |
|
| @@ 926-942 (lines=17) @@ | ||
| 923 | * |
|
| 924 | * @return \eZ\Publish\Core\Repository\Helper\DomainMapper |
|
| 925 | */ |
|
| 926 | protected function getDomainMapper() |
|
| 927 | { |
|
| 928 | if ($this->domainMapper !== null) { |
|
| 929 | return $this->domainMapper; |
|
| 930 | } |
|
| 931 | ||
| 932 | $this->domainMapper = new Helper\DomainMapper( |
|
| 933 | $this->persistenceHandler->contentHandler(), |
|
| 934 | $this->persistenceHandler->locationHandler(), |
|
| 935 | $this->persistenceHandler->contentTypeHandler(), |
|
| 936 | $this->getContentTypeDomainMapper(), |
|
| 937 | $this->persistenceHandler->contentLanguageHandler(), |
|
| 938 | $this->getFieldTypeRegistry() |
|
| 939 | ); |
|
| 940 | ||
| 941 | return $this->domainMapper; |
|
| 942 | } |
|
| 943 | ||
| 944 | /** |
|
| 945 | * Get ContentType Domain Mapper. |
|