| @@ 475-492 (lines=18) @@ | ||
| 472 | * |
|
| 473 | * @return \eZ\Publish\API\Repository\ContentService |
|
| 474 | */ |
|
| 475 | public function getContentService() |
|
| 476 | { |
|
| 477 | if ($this->contentService !== null) { |
|
| 478 | return $this->contentService; |
|
| 479 | } |
|
| 480 | ||
| 481 | $this->contentService = new ContentService( |
|
| 482 | $this, |
|
| 483 | $this->persistenceHandler, |
|
| 484 | $this->getDomainMapper(), |
|
| 485 | $this->getRelationProcessor(), |
|
| 486 | $this->getNameSchemaService(), |
|
| 487 | $this->getFieldTypeRegistry(), |
|
| 488 | $this->serviceSettings['content'] |
|
| 489 | ); |
|
| 490 | ||
| 491 | return $this->contentService; |
|
| 492 | } |
|
| 493 | ||
| 494 | /** |
|
| 495 | * Get Content Language Service. |
|
| @@ 524-540 (lines=17) @@ | ||
| 521 | * |
|
| 522 | * @return \eZ\Publish\API\Repository\ContentTypeService |
|
| 523 | */ |
|
| 524 | public function getContentTypeService() |
|
| 525 | { |
|
| 526 | if ($this->contentTypeService !== null) { |
|
| 527 | return $this->contentTypeService; |
|
| 528 | } |
|
| 529 | ||
| 530 | $this->contentTypeService = new ContentTypeService( |
|
| 531 | $this, |
|
| 532 | $this->persistenceHandler->contentTypeHandler(), |
|
| 533 | $this->getDomainMapper(), |
|
| 534 | $this->getContentTypeDomainMapper(), |
|
| 535 | $this->getFieldTypeRegistry(), |
|
| 536 | $this->serviceSettings['contentType'] |
|
| 537 | ); |
|
| 538 | ||
| 539 | return $this->contentTypeService; |
|
| 540 | } |
|
| 541 | ||
| 542 | /** |
|
| 543 | * Get Content Location Service. |
|