| @@ 569-586 (lines=18) @@ | ||
| 566 | * |
|
| 567 | * @return \eZ\Publish\API\Repository\ContentService |
|
| 568 | */ |
|
| 569 | public function getContentService() |
|
| 570 | { |
|
| 571 | if ($this->contentService !== null) { |
|
| 572 | return $this->contentService; |
|
| 573 | } |
|
| 574 | ||
| 575 | $this->contentService = new ContentService( |
|
| 576 | $this, |
|
| 577 | $this->persistenceHandler, |
|
| 578 | $this->getDomainMapper(), |
|
| 579 | $this->getRelationProcessor(), |
|
| 580 | $this->getNameSchemaService(), |
|
| 581 | $this->getFieldTypeRegistry(), |
|
| 582 | $this->serviceSettings['content'] |
|
| 583 | ); |
|
| 584 | ||
| 585 | return $this->contentService; |
|
| 586 | } |
|
| 587 | ||
| 588 | /** |
|
| 589 | * Get Content Language Service. |
|
| @@ 618-634 (lines=17) @@ | ||
| 615 | * |
|
| 616 | * @return \eZ\Publish\API\Repository\ContentTypeService |
|
| 617 | */ |
|
| 618 | public function getContentTypeService() |
|
| 619 | { |
|
| 620 | if ($this->contentTypeService !== null) { |
|
| 621 | return $this->contentTypeService; |
|
| 622 | } |
|
| 623 | ||
| 624 | $this->contentTypeService = new ContentTypeService( |
|
| 625 | $this, |
|
| 626 | $this->persistenceHandler->contentTypeHandler(), |
|
| 627 | $this->getDomainMapper(), |
|
| 628 | $this->getContentTypeDomainMapper(), |
|
| 629 | $this->getFieldTypeRegistry(), |
|
| 630 | $this->serviceSettings['contentType'] |
|
| 631 | ); |
|
| 632 | ||
| 633 | return $this->contentTypeService; |
|
| 634 | } |
|
| 635 | ||
| 636 | /** |
|
| 637 | * Get Content Location Service. |
|