From f946492e7e22234d0aa1f99902fd1fd15b51c126 Mon Sep 17 00:00:00 2001 From: William Cheng Date: Thu, 31 Jan 2019 10:38:06 +0800 Subject: [PATCH] update php ze-ph samples --- .../php-ze-ph/src/App/Handler/AnotherFakeDummy.php | 2 +- .../server/petstore/php-ze-ph/src/App/Handler/Fake.php | 8 ++++---- .../php-ze-ph/src/App/Handler/FakeBodyWithFileSchema.php | 2 +- .../php-ze-ph/src/App/Handler/FakeBodyWithQueryParams.php | 2 +- .../php-ze-ph/src/App/Handler/FakeClassnameTest.php | 2 +- .../php-ze-ph/src/App/Handler/FakeCreateXmlItem.php | 2 +- .../src/App/Handler/FakeInlineAdditionalProperties.php | 2 +- .../php-ze-ph/src/App/Handler/FakeJsonFormData.php | 2 +- .../php-ze-ph/src/App/Handler/FakeOuterBoolean.php | 4 ++-- .../php-ze-ph/src/App/Handler/FakeOuterComposite.php | 4 ++-- .../php-ze-ph/src/App/Handler/FakeOuterNumber.php | 4 ++-- .../php-ze-ph/src/App/Handler/FakeOuterString.php | 4 ++-- .../App/Handler/FakePetIdUploadImageWithRequiredFile.php | 2 +- samples/server/petstore/php-ze-ph/src/App/Handler/Pet.php | 4 ++-- .../php-ze-ph/src/App/Handler/PetFindByStatus.php | 2 +- .../petstore/php-ze-ph/src/App/Handler/PetFindByTags.php | 2 +- .../petstore/php-ze-ph/src/App/Handler/PetPetId.php | 6 +++--- .../php-ze-ph/src/App/Handler/PetPetIdUploadImage.php | 2 +- .../petstore/php-ze-ph/src/App/Handler/StoreInventory.php | 2 +- .../petstore/php-ze-ph/src/App/Handler/StoreOrder.php | 2 +- .../php-ze-ph/src/App/Handler/StoreOrderOrderId.php | 4 ++-- .../server/petstore/php-ze-ph/src/App/Handler/User.php | 2 +- .../php-ze-ph/src/App/Handler/UserCreateWithArray.php | 2 +- .../php-ze-ph/src/App/Handler/UserCreateWithList.php | 2 +- .../petstore/php-ze-ph/src/App/Handler/UserLogin.php | 2 +- .../petstore/php-ze-ph/src/App/Handler/UserLogout.php | 2 +- .../petstore/php-ze-ph/src/App/Handler/UserUsername.php | 6 +++--- 27 files changed, 40 insertions(+), 40 deletions(-) diff --git a/samples/server/petstore/php-ze-ph/src/App/Handler/AnotherFakeDummy.php b/samples/server/petstore/php-ze-ph/src/App/Handler/AnotherFakeDummy.php index 14c909284a05..ee20ba08d24a 100644 --- a/samples/server/petstore/php-ze-ph/src/App/Handler/AnotherFakeDummy.php +++ b/samples/server/petstore/php-ze-ph/src/App/Handler/AnotherFakeDummy.php @@ -17,7 +17,7 @@ class AnotherFakeDummy { /** * To test special tags - * @PHA\handlePatch + * @PHA\Patch() * TODO check if consumer is valid, if it has correct priority and if it can be moved to class annotation * @PHA\Consumer(name=PHConsumer\Json::class, mediaType="application/json") * @PHA\Attribute(name=PHAttribute\Transfer::class, options={"type":\App\DTO\Client::class,"objectAttr":"bodyData"}) diff --git a/samples/server/petstore/php-ze-ph/src/App/Handler/Fake.php b/samples/server/petstore/php-ze-ph/src/App/Handler/Fake.php index 470ed213d4b8..d93574b0367d 100644 --- a/samples/server/petstore/php-ze-ph/src/App/Handler/Fake.php +++ b/samples/server/petstore/php-ze-ph/src/App/Handler/Fake.php @@ -17,7 +17,7 @@ class Fake { /** * To test \"client\" model - * @PHA\handlePatch + * @PHA\Patch() * TODO check if consumer is valid, if it has correct priority and if it can be moved to class annotation * @PHA\Consumer(name=PHConsumer\Json::class, mediaType="application/json") * @PHA\Attribute(name=PHAttribute\Transfer::class, options={"type":\App\DTO\Client::class,"objectAttr":"bodyData"}) @@ -38,7 +38,7 @@ class Fake } /** * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - * @PHA\handlePost + * @PHA\Post() * @param ServerRequestInterface $request * * @throws PHException\HttpCode 501 if the method is not implemented @@ -50,7 +50,7 @@ class Fake } /** * To test enum parameters - * @PHA\handleGet + * @PHA\Get() * @param ServerRequestInterface $request * * @throws PHException\HttpCode 501 if the method is not implemented @@ -62,7 +62,7 @@ class Fake } /** * Fake endpoint to test group parameters (optional) - * @PHA\handleDelete + * @PHA\Delete() * @param ServerRequestInterface $request * * @throws PHException\HttpCode 501 if the method is not implemented diff --git a/samples/server/petstore/php-ze-ph/src/App/Handler/FakeBodyWithFileSchema.php b/samples/server/petstore/php-ze-ph/src/App/Handler/FakeBodyWithFileSchema.php index 3558e8774cb8..47ce029df6e1 100644 --- a/samples/server/petstore/php-ze-ph/src/App/Handler/FakeBodyWithFileSchema.php +++ b/samples/server/petstore/php-ze-ph/src/App/Handler/FakeBodyWithFileSchema.php @@ -16,7 +16,7 @@ use Psr\Http\Message\ServerRequestInterface; class FakeBodyWithFileSchema { /** - * @PHA\handlePut + * @PHA\Put() * TODO check if consumer is valid, if it has correct priority and if it can be moved to class annotation * @PHA\Consumer(name=PHConsumer\Json::class, mediaType="application/json") * @PHA\Attribute(name=PHAttribute\Transfer::class, options={"type":\App\DTO\FileSchemaTestClass::class,"objectAttr":"bodyData"}) diff --git a/samples/server/petstore/php-ze-ph/src/App/Handler/FakeBodyWithQueryParams.php b/samples/server/petstore/php-ze-ph/src/App/Handler/FakeBodyWithQueryParams.php index dceb6596ba2e..9844c5978164 100644 --- a/samples/server/petstore/php-ze-ph/src/App/Handler/FakeBodyWithQueryParams.php +++ b/samples/server/petstore/php-ze-ph/src/App/Handler/FakeBodyWithQueryParams.php @@ -16,7 +16,7 @@ use Psr\Http\Message\ServerRequestInterface; class FakeBodyWithQueryParams { /** - * @PHA\handlePut + * @PHA\Put() * TODO check if consumer is valid, if it has correct priority and if it can be moved to class annotation * @PHA\Consumer(name=PHConsumer\Json::class, mediaType="application/json") * @PHA\Attribute(name=PHAttribute\Transfer::class, options={"type":\App\DTO\User::class,"objectAttr":"bodyData"}) diff --git a/samples/server/petstore/php-ze-ph/src/App/Handler/FakeClassnameTest.php b/samples/server/petstore/php-ze-ph/src/App/Handler/FakeClassnameTest.php index c32c1fad0614..74991195dce0 100644 --- a/samples/server/petstore/php-ze-ph/src/App/Handler/FakeClassnameTest.php +++ b/samples/server/petstore/php-ze-ph/src/App/Handler/FakeClassnameTest.php @@ -17,7 +17,7 @@ class FakeClassnameTest { /** * To test class name in snake case - * @PHA\handlePatch + * @PHA\Patch() * TODO check if consumer is valid, if it has correct priority and if it can be moved to class annotation * @PHA\Consumer(name=PHConsumer\Json::class, mediaType="application/json") * @PHA\Attribute(name=PHAttribute\Transfer::class, options={"type":\App\DTO\Client::class,"objectAttr":"bodyData"}) diff --git a/samples/server/petstore/php-ze-ph/src/App/Handler/FakeCreateXmlItem.php b/samples/server/petstore/php-ze-ph/src/App/Handler/FakeCreateXmlItem.php index c97907e21741..ec96b29c8ef0 100644 --- a/samples/server/petstore/php-ze-ph/src/App/Handler/FakeCreateXmlItem.php +++ b/samples/server/petstore/php-ze-ph/src/App/Handler/FakeCreateXmlItem.php @@ -17,7 +17,7 @@ class FakeCreateXmlItem { /** * creates an XmlItem - * @PHA\handlePost + * @PHA\Post() * TODO check if consumer is valid, if it has correct priority and if it can be moved to class annotation * @PHA\Consumer(name=PHConsumer\Json::class, mediaType="application/xml") * TODO check if consumer is valid, if it has correct priority and if it can be moved to class annotation diff --git a/samples/server/petstore/php-ze-ph/src/App/Handler/FakeInlineAdditionalProperties.php b/samples/server/petstore/php-ze-ph/src/App/Handler/FakeInlineAdditionalProperties.php index c6fd3bdee9f1..bb6868c68e3e 100644 --- a/samples/server/petstore/php-ze-ph/src/App/Handler/FakeInlineAdditionalProperties.php +++ b/samples/server/petstore/php-ze-ph/src/App/Handler/FakeInlineAdditionalProperties.php @@ -17,7 +17,7 @@ class FakeInlineAdditionalProperties { /** * test inline additionalProperties - * @PHA\handlePost + * @PHA\Post() * TODO check if consumer is valid, if it has correct priority and if it can be moved to class annotation * @PHA\Consumer(name=PHConsumer\Json::class, mediaType="application/json") * TODO check if attribute is valid and can handle your container type diff --git a/samples/server/petstore/php-ze-ph/src/App/Handler/FakeJsonFormData.php b/samples/server/petstore/php-ze-ph/src/App/Handler/FakeJsonFormData.php index 05f67537fd0f..ed3e0f6d2efe 100644 --- a/samples/server/petstore/php-ze-ph/src/App/Handler/FakeJsonFormData.php +++ b/samples/server/petstore/php-ze-ph/src/App/Handler/FakeJsonFormData.php @@ -17,7 +17,7 @@ class FakeJsonFormData { /** * test json serialization of form data - * @PHA\handleGet + * @PHA\Get() * @param ServerRequestInterface $request * * @throws PHException\HttpCode 501 if the method is not implemented diff --git a/samples/server/petstore/php-ze-ph/src/App/Handler/FakeOuterBoolean.php b/samples/server/petstore/php-ze-ph/src/App/Handler/FakeOuterBoolean.php index 72e86c1de80a..2ecd0bc9c7d7 100644 --- a/samples/server/petstore/php-ze-ph/src/App/Handler/FakeOuterBoolean.php +++ b/samples/server/petstore/php-ze-ph/src/App/Handler/FakeOuterBoolean.php @@ -16,9 +16,9 @@ use Psr\Http\Message\ServerRequestInterface; class FakeOuterBoolean { /** - * @PHA\handlePost + * @PHA\Post() * TODO check if producer is valid, if it has correct priority and if it can be moved to class annotation - * @PHA\Producer(name=PHProducer\Transfer::class, mediaType="*/*") + * @PHA\Producer(name=PHProducer\Transfer::class, mediaType="n/a") * @param ServerRequestInterface $request * * @throws PHException\HttpCode 501 if the method is not implemented diff --git a/samples/server/petstore/php-ze-ph/src/App/Handler/FakeOuterComposite.php b/samples/server/petstore/php-ze-ph/src/App/Handler/FakeOuterComposite.php index f698c3409c2d..8f3a4081cafb 100644 --- a/samples/server/petstore/php-ze-ph/src/App/Handler/FakeOuterComposite.php +++ b/samples/server/petstore/php-ze-ph/src/App/Handler/FakeOuterComposite.php @@ -16,10 +16,10 @@ use Psr\Http\Message\ServerRequestInterface; class FakeOuterComposite { /** - * @PHA\handlePost + * @PHA\Post() * @PHA\Attribute(name=PHAttribute\Transfer::class, options={"type":\App\DTO\OuterComposite::class,"objectAttr":"bodyData"}) * TODO check if producer is valid, if it has correct priority and if it can be moved to class annotation - * @PHA\Producer(name=PHProducer\Transfer::class, mediaType="*/*") + * @PHA\Producer(name=PHProducer\Transfer::class, mediaType="n/a") * @param ServerRequestInterface $request * * @throws PHException\HttpCode 501 if the method is not implemented diff --git a/samples/server/petstore/php-ze-ph/src/App/Handler/FakeOuterNumber.php b/samples/server/petstore/php-ze-ph/src/App/Handler/FakeOuterNumber.php index cd8635cc6c32..595690de8977 100644 --- a/samples/server/petstore/php-ze-ph/src/App/Handler/FakeOuterNumber.php +++ b/samples/server/petstore/php-ze-ph/src/App/Handler/FakeOuterNumber.php @@ -16,9 +16,9 @@ use Psr\Http\Message\ServerRequestInterface; class FakeOuterNumber { /** - * @PHA\handlePost + * @PHA\Post() * TODO check if producer is valid, if it has correct priority and if it can be moved to class annotation - * @PHA\Producer(name=PHProducer\Transfer::class, mediaType="*/*") + * @PHA\Producer(name=PHProducer\Transfer::class, mediaType="n/a") * @param ServerRequestInterface $request * * @throws PHException\HttpCode 501 if the method is not implemented diff --git a/samples/server/petstore/php-ze-ph/src/App/Handler/FakeOuterString.php b/samples/server/petstore/php-ze-ph/src/App/Handler/FakeOuterString.php index ad4be0f68065..7ce93abfdbdf 100644 --- a/samples/server/petstore/php-ze-ph/src/App/Handler/FakeOuterString.php +++ b/samples/server/petstore/php-ze-ph/src/App/Handler/FakeOuterString.php @@ -16,9 +16,9 @@ use Psr\Http\Message\ServerRequestInterface; class FakeOuterString { /** - * @PHA\handlePost + * @PHA\Post() * TODO check if producer is valid, if it has correct priority and if it can be moved to class annotation - * @PHA\Producer(name=PHProducer\Transfer::class, mediaType="*/*") + * @PHA\Producer(name=PHProducer\Transfer::class, mediaType="n/a") * @param ServerRequestInterface $request * * @throws PHException\HttpCode 501 if the method is not implemented diff --git a/samples/server/petstore/php-ze-ph/src/App/Handler/FakePetIdUploadImageWithRequiredFile.php b/samples/server/petstore/php-ze-ph/src/App/Handler/FakePetIdUploadImageWithRequiredFile.php index e60b467f1353..7648339dd49c 100644 --- a/samples/server/petstore/php-ze-ph/src/App/Handler/FakePetIdUploadImageWithRequiredFile.php +++ b/samples/server/petstore/php-ze-ph/src/App/Handler/FakePetIdUploadImageWithRequiredFile.php @@ -17,7 +17,7 @@ class FakePetIdUploadImageWithRequiredFile { /** * uploads an image (required) - * @PHA\handlePost + * @PHA\Post() * TODO check if producer is valid, if it has correct priority and if it can be moved to class annotation * @PHA\Producer(name=PHProducer\Transfer::class, mediaType="application/json") * @param ServerRequestInterface $request diff --git a/samples/server/petstore/php-ze-ph/src/App/Handler/Pet.php b/samples/server/petstore/php-ze-ph/src/App/Handler/Pet.php index 6e41dbfe2857..064a9712bf8d 100644 --- a/samples/server/petstore/php-ze-ph/src/App/Handler/Pet.php +++ b/samples/server/petstore/php-ze-ph/src/App/Handler/Pet.php @@ -17,7 +17,7 @@ class Pet { /** * Add a new pet to the store - * @PHA\handlePost + * @PHA\Post() * TODO check if consumer is valid, if it has correct priority and if it can be moved to class annotation * @PHA\Consumer(name=PHConsumer\Json::class, mediaType="application/json") * TODO check if consumer is valid, if it has correct priority and if it can be moved to class annotation @@ -36,7 +36,7 @@ class Pet } /** * Update an existing pet - * @PHA\handlePut + * @PHA\Put() * TODO check if consumer is valid, if it has correct priority and if it can be moved to class annotation * @PHA\Consumer(name=PHConsumer\Json::class, mediaType="application/json") * TODO check if consumer is valid, if it has correct priority and if it can be moved to class annotation diff --git a/samples/server/petstore/php-ze-ph/src/App/Handler/PetFindByStatus.php b/samples/server/petstore/php-ze-ph/src/App/Handler/PetFindByStatus.php index 1b5dfd1d2dd9..65fe83918d4d 100644 --- a/samples/server/petstore/php-ze-ph/src/App/Handler/PetFindByStatus.php +++ b/samples/server/petstore/php-ze-ph/src/App/Handler/PetFindByStatus.php @@ -17,7 +17,7 @@ class PetFindByStatus { /** * Finds Pets by status - * @PHA\handleGet + * @PHA\Get() * TODO check if producer is valid, if it has correct priority and if it can be moved to class annotation * @PHA\Producer(name=PHProducer\Transfer::class, mediaType="application/xml") * TODO check if producer is valid, if it has correct priority and if it can be moved to class annotation diff --git a/samples/server/petstore/php-ze-ph/src/App/Handler/PetFindByTags.php b/samples/server/petstore/php-ze-ph/src/App/Handler/PetFindByTags.php index eb22aa3f0a7a..0126ada37c0a 100644 --- a/samples/server/petstore/php-ze-ph/src/App/Handler/PetFindByTags.php +++ b/samples/server/petstore/php-ze-ph/src/App/Handler/PetFindByTags.php @@ -17,7 +17,7 @@ class PetFindByTags { /** * Finds Pets by tags - * @PHA\handleGet + * @PHA\Get() * TODO check if producer is valid, if it has correct priority and if it can be moved to class annotation * @PHA\Producer(name=PHProducer\Transfer::class, mediaType="application/xml") * TODO check if producer is valid, if it has correct priority and if it can be moved to class annotation diff --git a/samples/server/petstore/php-ze-ph/src/App/Handler/PetPetId.php b/samples/server/petstore/php-ze-ph/src/App/Handler/PetPetId.php index 3d39994737d7..625bbf5832c3 100644 --- a/samples/server/petstore/php-ze-ph/src/App/Handler/PetPetId.php +++ b/samples/server/petstore/php-ze-ph/src/App/Handler/PetPetId.php @@ -17,7 +17,7 @@ class PetPetId { /** * Deletes a pet - * @PHA\handleDelete + * @PHA\Delete() * @param ServerRequestInterface $request * * @throws PHException\HttpCode 501 if the method is not implemented @@ -29,7 +29,7 @@ class PetPetId } /** * Find pet by ID - * @PHA\handleGet + * @PHA\Get() * TODO check if producer is valid, if it has correct priority and if it can be moved to class annotation * @PHA\Producer(name=PHProducer\Transfer::class, mediaType="application/xml") * TODO check if producer is valid, if it has correct priority and if it can be moved to class annotation @@ -47,7 +47,7 @@ class PetPetId } /** * Updates a pet in the store with form data - * @PHA\handlePost + * @PHA\Post() * @param ServerRequestInterface $request * * @throws PHException\HttpCode 501 if the method is not implemented diff --git a/samples/server/petstore/php-ze-ph/src/App/Handler/PetPetIdUploadImage.php b/samples/server/petstore/php-ze-ph/src/App/Handler/PetPetIdUploadImage.php index db143c6f7524..67cc0784caac 100644 --- a/samples/server/petstore/php-ze-ph/src/App/Handler/PetPetIdUploadImage.php +++ b/samples/server/petstore/php-ze-ph/src/App/Handler/PetPetIdUploadImage.php @@ -17,7 +17,7 @@ class PetPetIdUploadImage { /** * uploads an image - * @PHA\handlePost + * @PHA\Post() * TODO check if producer is valid, if it has correct priority and if it can be moved to class annotation * @PHA\Producer(name=PHProducer\Transfer::class, mediaType="application/json") * @param ServerRequestInterface $request diff --git a/samples/server/petstore/php-ze-ph/src/App/Handler/StoreInventory.php b/samples/server/petstore/php-ze-ph/src/App/Handler/StoreInventory.php index 1596b36f5ca6..6d6d3ceb9464 100644 --- a/samples/server/petstore/php-ze-ph/src/App/Handler/StoreInventory.php +++ b/samples/server/petstore/php-ze-ph/src/App/Handler/StoreInventory.php @@ -17,7 +17,7 @@ class StoreInventory { /** * Returns pet inventories by status - * @PHA\handleGet + * @PHA\Get() * TODO check if producer is valid, if it has correct priority and if it can be moved to class annotation * @PHA\Producer(name=PHProducer\Transfer::class, mediaType="application/json") * @param ServerRequestInterface $request diff --git a/samples/server/petstore/php-ze-ph/src/App/Handler/StoreOrder.php b/samples/server/petstore/php-ze-ph/src/App/Handler/StoreOrder.php index a777451785db..23623764409a 100644 --- a/samples/server/petstore/php-ze-ph/src/App/Handler/StoreOrder.php +++ b/samples/server/petstore/php-ze-ph/src/App/Handler/StoreOrder.php @@ -17,7 +17,7 @@ class StoreOrder { /** * Place an order for a pet - * @PHA\handlePost + * @PHA\Post() * @PHA\Attribute(name=PHAttribute\Transfer::class, options={"type":\App\DTO\Order::class,"objectAttr":"bodyData"}) * TODO check if producer is valid, if it has correct priority and if it can be moved to class annotation * @PHA\Producer(name=PHProducer\Transfer::class, mediaType="application/xml") diff --git a/samples/server/petstore/php-ze-ph/src/App/Handler/StoreOrderOrderId.php b/samples/server/petstore/php-ze-ph/src/App/Handler/StoreOrderOrderId.php index 9618069ea9aa..28aa169a0c89 100644 --- a/samples/server/petstore/php-ze-ph/src/App/Handler/StoreOrderOrderId.php +++ b/samples/server/petstore/php-ze-ph/src/App/Handler/StoreOrderOrderId.php @@ -17,7 +17,7 @@ class StoreOrderOrderId { /** * Delete purchase order by ID - * @PHA\handleDelete + * @PHA\Delete() * @param ServerRequestInterface $request * * @throws PHException\HttpCode 501 if the method is not implemented @@ -29,7 +29,7 @@ class StoreOrderOrderId } /** * Find purchase order by ID - * @PHA\handleGet + * @PHA\Get() * TODO check if producer is valid, if it has correct priority and if it can be moved to class annotation * @PHA\Producer(name=PHProducer\Transfer::class, mediaType="application/xml") * TODO check if producer is valid, if it has correct priority and if it can be moved to class annotation diff --git a/samples/server/petstore/php-ze-ph/src/App/Handler/User.php b/samples/server/petstore/php-ze-ph/src/App/Handler/User.php index c016c23e071e..9d3d8ceb9e37 100644 --- a/samples/server/petstore/php-ze-ph/src/App/Handler/User.php +++ b/samples/server/petstore/php-ze-ph/src/App/Handler/User.php @@ -17,7 +17,7 @@ class User { /** * Create user - * @PHA\handlePost + * @PHA\Post() * @PHA\Attribute(name=PHAttribute\Transfer::class, options={"type":\App\DTO\User::class,"objectAttr":"bodyData"}) * @param ServerRequestInterface $request * diff --git a/samples/server/petstore/php-ze-ph/src/App/Handler/UserCreateWithArray.php b/samples/server/petstore/php-ze-ph/src/App/Handler/UserCreateWithArray.php index b0e44209dc74..8ac24b28f2f6 100644 --- a/samples/server/petstore/php-ze-ph/src/App/Handler/UserCreateWithArray.php +++ b/samples/server/petstore/php-ze-ph/src/App/Handler/UserCreateWithArray.php @@ -17,7 +17,7 @@ class UserCreateWithArray { /** * Creates list of users with given input array - * @PHA\handlePost + * @PHA\Post() * TODO check if attribute is valid and can handle your container type * @PHA\Attribute(name=PHAttribute\Transfer::class, options={"type":"\App\DTO\User[]","objectAttr":"bodyData"}) * @param ServerRequestInterface $request diff --git a/samples/server/petstore/php-ze-ph/src/App/Handler/UserCreateWithList.php b/samples/server/petstore/php-ze-ph/src/App/Handler/UserCreateWithList.php index 78532988688c..27ccafbb5d22 100644 --- a/samples/server/petstore/php-ze-ph/src/App/Handler/UserCreateWithList.php +++ b/samples/server/petstore/php-ze-ph/src/App/Handler/UserCreateWithList.php @@ -17,7 +17,7 @@ class UserCreateWithList { /** * Creates list of users with given input array - * @PHA\handlePost + * @PHA\Post() * TODO check if attribute is valid and can handle your container type * @PHA\Attribute(name=PHAttribute\Transfer::class, options={"type":"\App\DTO\User[]","objectAttr":"bodyData"}) * @param ServerRequestInterface $request diff --git a/samples/server/petstore/php-ze-ph/src/App/Handler/UserLogin.php b/samples/server/petstore/php-ze-ph/src/App/Handler/UserLogin.php index 886b8bb0c3b7..2322e8f2317f 100644 --- a/samples/server/petstore/php-ze-ph/src/App/Handler/UserLogin.php +++ b/samples/server/petstore/php-ze-ph/src/App/Handler/UserLogin.php @@ -17,7 +17,7 @@ class UserLogin { /** * Logs user into the system - * @PHA\handleGet + * @PHA\Get() * TODO check if producer is valid, if it has correct priority and if it can be moved to class annotation * @PHA\Producer(name=PHProducer\Transfer::class, mediaType="application/xml") * TODO check if producer is valid, if it has correct priority and if it can be moved to class annotation diff --git a/samples/server/petstore/php-ze-ph/src/App/Handler/UserLogout.php b/samples/server/petstore/php-ze-ph/src/App/Handler/UserLogout.php index 3c858e04f800..4c0d8b1bb06e 100644 --- a/samples/server/petstore/php-ze-ph/src/App/Handler/UserLogout.php +++ b/samples/server/petstore/php-ze-ph/src/App/Handler/UserLogout.php @@ -17,7 +17,7 @@ class UserLogout { /** * Logs out current logged in user session - * @PHA\handleGet + * @PHA\Get() * @param ServerRequestInterface $request * * @throws PHException\HttpCode 501 if the method is not implemented diff --git a/samples/server/petstore/php-ze-ph/src/App/Handler/UserUsername.php b/samples/server/petstore/php-ze-ph/src/App/Handler/UserUsername.php index fbeea79285dd..290bfeb9731d 100644 --- a/samples/server/petstore/php-ze-ph/src/App/Handler/UserUsername.php +++ b/samples/server/petstore/php-ze-ph/src/App/Handler/UserUsername.php @@ -17,7 +17,7 @@ class UserUsername { /** * Delete user - * @PHA\handleDelete + * @PHA\Delete() * @param ServerRequestInterface $request * * @throws PHException\HttpCode 501 if the method is not implemented @@ -29,7 +29,7 @@ class UserUsername } /** * Get user by user name - * @PHA\handleGet + * @PHA\Get() * TODO check if producer is valid, if it has correct priority and if it can be moved to class annotation * @PHA\Producer(name=PHProducer\Transfer::class, mediaType="application/xml") * TODO check if producer is valid, if it has correct priority and if it can be moved to class annotation @@ -47,7 +47,7 @@ class UserUsername } /** * Updated user - * @PHA\handlePut + * @PHA\Put() * @PHA\Attribute(name=PHAttribute\Transfer::class, options={"type":\App\DTO\User::class,"objectAttr":"bodyData"}) * @param ServerRequestInterface $request *