public function getContentService() { if (null === $this->contentService) { $this->contentService = new ContentService($this->client, $this->inputDispatcher, $this->outputVisitor, $this->requestParser, $this->getContentTypeService()); } return $this->contentService; }