/** * @param string $type * * @return string[] */ private function getIncludePathsByType($type) { // if include paths are set in params use them otherwise use default include paths from schema $includePaths = $this->parameters->getIncludePaths(); if (empty($includePaths) === false) { $typePaths = $includePaths; } else { $schema = $this->container->getSchemaByResourceType($type); $typePaths = $schema->getIncludePaths(); } return $typePaths; }
/** * @inheritdoc */ public function getSchemaByResourceType($resourceType) { return $this->getSchemaAdapter($this->container->getSchemaByResourceType($resourceType)); }