| @@ 456-473 (lines=18) @@ | ||
| 453 | * |
|
| 454 | * @return \eZ\Publish\API\Repository\ContentService |
|
| 455 | */ |
|
| 456 | public function getContentService() |
|
| 457 | { |
|
| 458 | if ($this->contentService !== null) { |
|
| 459 | return $this->contentService; |
|
| 460 | } |
|
| 461 | ||
| 462 | $this->contentService = new ContentService( |
|
| 463 | $this, |
|
| 464 | $this->persistenceHandler, |
|
| 465 | $this->getDomainMapper(), |
|
| 466 | $this->getRelationProcessor(), |
|
| 467 | $this->getNameSchemaService(), |
|
| 468 | $this->getFieldTypeRegistry(), |
|
| 469 | $this->serviceSettings['content'] |
|
| 470 | ); |
|
| 471 | ||
| 472 | return $this->contentService; |
|
| 473 | } |
|
| 474 | ||
| 475 | /** |
|
| 476 | * Get Content Language Service. |
|
| @@ 505-521 (lines=17) @@ | ||
| 502 | * |
|
| 503 | * @return \eZ\Publish\API\Repository\ContentTypeService |
|
| 504 | */ |
|
| 505 | public function getContentTypeService() |
|
| 506 | { |
|
| 507 | if ($this->contentTypeService !== null) { |
|
| 508 | return $this->contentTypeService; |
|
| 509 | } |
|
| 510 | ||
| 511 | $this->contentTypeService = new ContentTypeService( |
|
| 512 | $this, |
|
| 513 | $this->persistenceHandler->contentTypeHandler(), |
|
| 514 | $this->getDomainMapper(), |
|
| 515 | $this->getContentTypeDomainMapper(), |
|
| 516 | $this->getFieldTypeRegistry(), |
|
| 517 | $this->serviceSettings['contentType'] |
|
| 518 | ); |
|
| 519 | ||
| 520 | return $this->contentTypeService; |
|
| 521 | } |
|
| 522 | ||
| 523 | /** |
|
| 524 | * Get Content Location Service. |
|