[php-symfony] Add backslash to "load" namespaces from global namespace (#9740)

* Add backslash to load namespace from global namespace

* Update example

* Remove hardcoded slash

* Add backslash from java side

* Update samples

* Fix first sample

* Fix other snapshot

* Update version file
This commit is contained in:
Sem Schilder
2021-08-03 11:09:52 +02:00
committed by GitHub
parent c28c1253a4
commit 4210b41f84
13 changed files with 542 additions and 102 deletions

View File

@@ -75,11 +75,11 @@ interface PetApiInterface
*
* Add a new pet to the store
*
* @param OpenAPI\Server\Model\Pet $pet Pet object that needs to be added to the store (required)
* @param integer $responseCode The HTTP response code to return
* @param array $responseHeaders Additional HTTP headers to return with the response ()
* @param \OpenAPI\Server\Model\Pet $pet Pet object that needs to be added to the store (required)
* @param \int $responseCode The HTTP response code to return
* @param \array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return OpenAPI\Server\Model\Pet
* @return \OpenAPI\Server\Model\Pet
*
*/
public function addPet(Pet $pet, &$responseCode, array &$responseHeaders);
@@ -89,10 +89,10 @@ interface PetApiInterface
*
* Deletes a pet
*
* @param int $petId Pet id to delete (required)
* @param string $apiKey (optional)
* @param integer $responseCode The HTTP response code to return
* @param array $responseHeaders Additional HTTP headers to return with the response ()
* @param \int $petId Pet id to delete (required)
* @param \string $apiKey (optional)
* @param \int $responseCode The HTTP response code to return
* @param \array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return void
*
@@ -104,11 +104,11 @@ interface PetApiInterface
*
* Finds Pets by status
*
* @param string[] $status Status values that need to be considered for filter (required)
* @param integer $responseCode The HTTP response code to return
* @param array $responseHeaders Additional HTTP headers to return with the response ()
* @param \string[] $status Status values that need to be considered for filter (required)
* @param \int $responseCode The HTTP response code to return
* @param \array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return OpenAPI\Server\Model\Pet[]
* @return \OpenAPI\Server\Model\Pet[]
*
*/
public function findPetsByStatus(array $status, &$responseCode, array &$responseHeaders);
@@ -118,11 +118,11 @@ interface PetApiInterface
*
* Finds Pets by tags
*
* @param string[] $tags Tags to filter by (required)
* @param integer $responseCode The HTTP response code to return
* @param array $responseHeaders Additional HTTP headers to return with the response ()
* @param \string[] $tags Tags to filter by (required)
* @param \int $responseCode The HTTP response code to return
* @param \array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return OpenAPI\Server\Model\Pet[]
* @return \OpenAPI\Server\Model\Pet[]
*
*/
public function findPetsByTags(array $tags, &$responseCode, array &$responseHeaders);
@@ -132,11 +132,11 @@ interface PetApiInterface
*
* Find pet by ID
*
* @param int $petId ID of pet to return (required)
* @param integer $responseCode The HTTP response code to return
* @param array $responseHeaders Additional HTTP headers to return with the response ()
* @param \int $petId ID of pet to return (required)
* @param \int $responseCode The HTTP response code to return
* @param \array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return OpenAPI\Server\Model\Pet
* @return \OpenAPI\Server\Model\Pet
*
*/
public function getPetById($petId, &$responseCode, array &$responseHeaders);
@@ -146,11 +146,11 @@ interface PetApiInterface
*
* Update an existing pet
*
* @param OpenAPI\Server\Model\Pet $pet Pet object that needs to be added to the store (required)
* @param integer $responseCode The HTTP response code to return
* @param array $responseHeaders Additional HTTP headers to return with the response ()
* @param \OpenAPI\Server\Model\Pet $pet Pet object that needs to be added to the store (required)
* @param \int $responseCode The HTTP response code to return
* @param \array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return OpenAPI\Server\Model\Pet
* @return \OpenAPI\Server\Model\Pet
*
*/
public function updatePet(Pet $pet, &$responseCode, array &$responseHeaders);
@@ -160,11 +160,11 @@ interface PetApiInterface
*
* Updates a pet in the store with form data
*
* @param int $petId ID of pet that needs to be updated (required)
* @param string $name Updated name of the pet (optional)
* @param string $status Updated status of the pet (optional)
* @param integer $responseCode The HTTP response code to return
* @param array $responseHeaders Additional HTTP headers to return with the response ()
* @param \int $petId ID of pet that needs to be updated (required)
* @param \string $name Updated name of the pet (optional)
* @param \string $status Updated status of the pet (optional)
* @param \int $responseCode The HTTP response code to return
* @param \array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return void
*
@@ -176,13 +176,13 @@ interface PetApiInterface
*
* uploads an image
*
* @param int $petId ID of pet to update (required)
* @param string $additionalMetadata Additional data to pass to server (optional)
* @param UploadedFile $file file to upload (optional)
* @param integer $responseCode The HTTP response code to return
* @param array $responseHeaders Additional HTTP headers to return with the response ()
* @param \int $petId ID of pet to update (required)
* @param \string $additionalMetadata Additional data to pass to server (optional)
* @param \UploadedFile $file file to upload (optional)
* @param \int $responseCode The HTTP response code to return
* @param \array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return OpenAPI\Server\Model\ApiResponse
* @return \OpenAPI\Server\Model\ApiResponse
*
*/
public function uploadFile($petId, $additionalMetadata = null, UploadedFile $file = null, &$responseCode, array &$responseHeaders);

View File

@@ -56,9 +56,9 @@ interface StoreApiInterface
*
* Delete purchase order by ID
*
* @param string $orderId ID of the order that needs to be deleted (required)
* @param integer $responseCode The HTTP response code to return
* @param array $responseHeaders Additional HTTP headers to return with the response ()
* @param \string $orderId ID of the order that needs to be deleted (required)
* @param \int $responseCode The HTTP response code to return
* @param \array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return void
*
@@ -70,10 +70,10 @@ interface StoreApiInterface
*
* Returns pet inventories by status
*
* @param integer $responseCode The HTTP response code to return
* @param array $responseHeaders Additional HTTP headers to return with the response ()
* @param \int $responseCode The HTTP response code to return
* @param \array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return int
* @return \int
*
*/
public function getInventory(&$responseCode, array &$responseHeaders);
@@ -83,11 +83,11 @@ interface StoreApiInterface
*
* Find purchase order by ID
*
* @param int $orderId ID of pet that needs to be fetched (required)
* @param integer $responseCode The HTTP response code to return
* @param array $responseHeaders Additional HTTP headers to return with the response ()
* @param \int $orderId ID of pet that needs to be fetched (required)
* @param \int $responseCode The HTTP response code to return
* @param \array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return OpenAPI\Server\Model\Order
* @return \OpenAPI\Server\Model\Order
*
*/
public function getOrderById($orderId, &$responseCode, array &$responseHeaders);
@@ -97,11 +97,11 @@ interface StoreApiInterface
*
* Place an order for a pet
*
* @param OpenAPI\Server\Model\Order $order order placed for purchasing the pet (required)
* @param integer $responseCode The HTTP response code to return
* @param array $responseHeaders Additional HTTP headers to return with the response ()
* @param \OpenAPI\Server\Model\Order $order order placed for purchasing the pet (required)
* @param \int $responseCode The HTTP response code to return
* @param \array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return OpenAPI\Server\Model\Order
* @return \OpenAPI\Server\Model\Order
*
*/
public function placeOrder(Order $order, &$responseCode, array &$responseHeaders);

View File

@@ -56,9 +56,9 @@ interface UserApiInterface
*
* Create user
*
* @param OpenAPI\Server\Model\User $user Created user object (required)
* @param integer $responseCode The HTTP response code to return
* @param array $responseHeaders Additional HTTP headers to return with the response ()
* @param \OpenAPI\Server\Model\User $user Created user object (required)
* @param \int $responseCode The HTTP response code to return
* @param \array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return void
*
@@ -70,9 +70,9 @@ interface UserApiInterface
*
* Creates list of users with given input array
*
* @param OpenAPI\Server\Model\User[] $user List of user object (required)
* @param integer $responseCode The HTTP response code to return
* @param array $responseHeaders Additional HTTP headers to return with the response ()
* @param \OpenAPI\Server\Model\User[] $user List of user object (required)
* @param \int $responseCode The HTTP response code to return
* @param \array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return void
*
@@ -84,9 +84,9 @@ interface UserApiInterface
*
* Creates list of users with given input array
*
* @param OpenAPI\Server\Model\User[] $user List of user object (required)
* @param integer $responseCode The HTTP response code to return
* @param array $responseHeaders Additional HTTP headers to return with the response ()
* @param \OpenAPI\Server\Model\User[] $user List of user object (required)
* @param \int $responseCode The HTTP response code to return
* @param \array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return void
*
@@ -98,9 +98,9 @@ interface UserApiInterface
*
* Delete user
*
* @param string $username The name that needs to be deleted (required)
* @param integer $responseCode The HTTP response code to return
* @param array $responseHeaders Additional HTTP headers to return with the response ()
* @param \string $username The name that needs to be deleted (required)
* @param \int $responseCode The HTTP response code to return
* @param \array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return void
*
@@ -112,11 +112,11 @@ interface UserApiInterface
*
* Get user by user name
*
* @param string $username The name that needs to be fetched. Use user1 for testing. (required)
* @param integer $responseCode The HTTP response code to return
* @param array $responseHeaders Additional HTTP headers to return with the response ()
* @param \string $username The name that needs to be fetched. Use user1 for testing. (required)
* @param \int $responseCode The HTTP response code to return
* @param \array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return OpenAPI\Server\Model\User
* @return \OpenAPI\Server\Model\User
*
*/
public function getUserByName($username, &$responseCode, array &$responseHeaders);
@@ -126,12 +126,12 @@ interface UserApiInterface
*
* Logs user into the system
*
* @param string $username The user name for login (required)
* @param string $password The password for login in clear text (required)
* @param integer $responseCode The HTTP response code to return
* @param array $responseHeaders Additional HTTP headers to return with the response ()
* @param \string $username The user name for login (required)
* @param \string $password The password for login in clear text (required)
* @param \int $responseCode The HTTP response code to return
* @param \array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return string
* @return \string
*
*/
public function loginUser($username, $password, &$responseCode, array &$responseHeaders);
@@ -141,8 +141,8 @@ interface UserApiInterface
*
* Logs out current logged in user session
*
* @param integer $responseCode The HTTP response code to return
* @param array $responseHeaders Additional HTTP headers to return with the response ()
* @param \int $responseCode The HTTP response code to return
* @param \array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return void
*
@@ -154,10 +154,10 @@ interface UserApiInterface
*
* Updated user
*
* @param string $username name that need to be deleted (required)
* @param OpenAPI\Server\Model\User $user Updated user object (required)
* @param integer $responseCode The HTTP response code to return
* @param array $responseHeaders Additional HTTP headers to return with the response ()
* @param \string $username name that need to be deleted (required)
* @param \OpenAPI\Server\Model\User $user Updated user object (required)
* @param \int $responseCode The HTTP response code to return
* @param \array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return void
*