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