| @@ 443-460 (lines=18) @@ | ||
| 440 | * |
|
| 441 | * @return \eZ\Publish\API\Repository\ContentService |
|
| 442 | */ |
|
| 443 | public function getContentService() |
|
| 444 | { |
|
| 445 | if ($this->contentService !== null) { |
|
| 446 | return $this->contentService; |
|
| 447 | } |
|
| 448 | ||
| 449 | $this->contentService = new ContentService( |
|
| 450 | $this, |
|
| 451 | $this->persistenceHandler, |
|
| 452 | $this->getDomainMapper(), |
|
| 453 | $this->getRelationProcessor(), |
|
| 454 | $this->getNameSchemaService(), |
|
| 455 | $this->getFieldTypeRegistry(), |
|
| 456 | $this->serviceSettings['content'] |
|
| 457 | ); |
|
| 458 | ||
| 459 | return $this->contentService; |
|
| 460 | } |
|
| 461 | ||
| 462 | /** |
|
| 463 | * Get Content Language Service. |
|
| @@ 492-508 (lines=17) @@ | ||
| 489 | * |
|
| 490 | * @return \eZ\Publish\API\Repository\ContentTypeService |
|
| 491 | */ |
|
| 492 | public function getContentTypeService() |
|
| 493 | { |
|
| 494 | if ($this->contentTypeService !== null) { |
|
| 495 | return $this->contentTypeService; |
|
| 496 | } |
|
| 497 | ||
| 498 | $this->contentTypeService = new ContentTypeService( |
|
| 499 | $this, |
|
| 500 | $this->persistenceHandler->contentTypeHandler(), |
|
| 501 | $this->getDomainMapper(), |
|
| 502 | $this->getContentTypeDomainMapper(), |
|
| 503 | $this->getFieldTypeRegistry(), |
|
| 504 | $this->serviceSettings['contentType'] |
|
| 505 | ); |
|
| 506 | ||
| 507 | return $this->contentTypeService; |
|
| 508 | } |
|
| 509 | ||
| 510 | /** |
|
| 511 | * Get Content Location Service. |
|