| @@ 434-451 (lines=18) @@ | ||
| 431 | * |
|
| 432 | * @return \eZ\Publish\API\Repository\ContentService |
|
| 433 | */ |
|
| 434 | public function getContentService() |
|
| 435 | { |
|
| 436 | if ($this->contentService !== null) { |
|
| 437 | return $this->contentService; |
|
| 438 | } |
|
| 439 | ||
| 440 | $this->contentService = new ContentService( |
|
| 441 | $this, |
|
| 442 | $this->persistenceHandler, |
|
| 443 | $this->getDomainMapper(), |
|
| 444 | $this->getRelationProcessor(), |
|
| 445 | $this->getNameSchemaService(), |
|
| 446 | $this->getFieldTypeRegistry(), |
|
| 447 | $this->serviceSettings['content'] |
|
| 448 | ); |
|
| 449 | ||
| 450 | return $this->contentService; |
|
| 451 | } |
|
| 452 | ||
| 453 | /** |
|
| 454 | * Get Content Language Service. |
|
| @@ 483-499 (lines=17) @@ | ||
| 480 | * |
|
| 481 | * @return \eZ\Publish\API\Repository\ContentTypeService |
|
| 482 | */ |
|
| 483 | public function getContentTypeService() |
|
| 484 | { |
|
| 485 | if ($this->contentTypeService !== null) { |
|
| 486 | return $this->contentTypeService; |
|
| 487 | } |
|
| 488 | ||
| 489 | $this->contentTypeService = new ContentTypeService( |
|
| 490 | $this, |
|
| 491 | $this->persistenceHandler->contentTypeHandler(), |
|
| 492 | $this->getDomainMapper(), |
|
| 493 | $this->getContentTypeDomainMapper(), |
|
| 494 | $this->getFieldTypeRegistry(), |
|
| 495 | $this->serviceSettings['contentType'] |
|
| 496 | ); |
|
| 497 | ||
| 498 | return $this->contentTypeService; |
|
| 499 | } |
|
| 500 | ||
| 501 | /** |
|
| 502 | * Get Content Location Service. |
|