diff --git a/composer.json b/composer.json index 3ff9ab761..76ea152b8 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "nelmio/api-doc-bundle", + "name": "alexrozz/api-doc-bundle", "description": "Generates documentation for your REST API from annotations and attributes", "keywords": ["api", "documentation", "doc", "rest"], "type": "symfony-bundle", diff --git a/src/Model/ModelRegistry.php b/src/Model/ModelRegistry.php index 544b3037e..9f865e5a2 100644 --- a/src/Model/ModelRegistry.php +++ b/src/Model/ModelRegistry.php @@ -195,9 +195,9 @@ private function getTypeShortName(Type $type): string } if (Type::BUILTIN_TYPE_OBJECT === $type->getBuiltinType()) { - $parts = explode('\\', $type->getClassName()); + $parts = array_slice(explode('\\', $type->getClassName()), 2); - return end($parts); + return implode('', $parts); } return $type->getBuiltinType();