| @@ 450-467 (lines=18) @@ | ||
| 447 | * |
|
| 448 | * @return \eZ\Publish\API\Repository\ContentService |
|
| 449 | */ |
|
| 450 | public function getContentService() |
|
| 451 | { |
|
| 452 | if ($this->contentService !== null) { |
|
| 453 | return $this->contentService; |
|
| 454 | } |
|
| 455 | ||
| 456 | $this->contentService = new ContentService( |
|
| 457 | $this, |
|
| 458 | $this->persistenceHandler, |
|
| 459 | $this->getDomainMapper(), |
|
| 460 | $this->getRelationProcessor(), |
|
| 461 | $this->getNameSchemaService(), |
|
| 462 | $this->getFieldTypeRegistry(), |
|
| 463 | $this->serviceSettings['content'] |
|
| 464 | ); |
|
| 465 | ||
| 466 | return $this->contentService; |
|
| 467 | } |
|
| 468 | ||
| 469 | /** |
|
| 470 | * Get Content Language Service. |
|
| @@ 499-515 (lines=17) @@ | ||
| 496 | * |
|
| 497 | * @return \eZ\Publish\API\Repository\ContentTypeService |
|
| 498 | */ |
|
| 499 | public function getContentTypeService() |
|
| 500 | { |
|
| 501 | if ($this->contentTypeService !== null) { |
|
| 502 | return $this->contentTypeService; |
|
| 503 | } |
|
| 504 | ||
| 505 | $this->contentTypeService = new ContentTypeService( |
|
| 506 | $this, |
|
| 507 | $this->persistenceHandler->contentTypeHandler(), |
|
| 508 | $this->getDomainMapper(), |
|
| 509 | $this->getContentTypeDomainMapper(), |
|
| 510 | $this->getFieldTypeRegistry(), |
|
| 511 | $this->serviceSettings['contentType'] |
|
| 512 | ); |
|
| 513 | ||
| 514 | return $this->contentTypeService; |
|
| 515 | } |
|
| 516 | ||
| 517 | /** |
|
| 518 | * Get Content Location Service. |
|