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