[PHP] Escape media type (#615)

* Move escapeMediaType() to AbstractPhpCodegen

* Escape media type

* Update samples

- bin/php-lumen-petstore-server.sh

* Refactoring: remove unused 'import'
This commit is contained in:
Akihito Nakano
2018-07-26 22:26:01 +09:00
committed by William Cheng
parent 65bad61abb
commit c9b934147a
5 changed files with 45 additions and 20 deletions

View File

@@ -81,28 +81,28 @@ $app->get('/v2/fake/jsonFormData', 'FakeApi@testJsonFormData');
* post fakeOuterBooleanSerialize
* Summary:
* Notes: Test serialization of outer boolean types
* Output-Formats: [*/*]
* Output-Formats: [*_/_*]
*/
$app->post('/v2/fake/outer/boolean', 'FakeApi@fakeOuterBooleanSerialize');
/**
* post fakeOuterCompositeSerialize
* Summary:
* Notes: Test serialization of object with outer number type
* Output-Formats: [*/*]
* Output-Formats: [*_/_*]
*/
$app->post('/v2/fake/outer/composite', 'FakeApi@fakeOuterCompositeSerialize');
/**
* post fakeOuterNumberSerialize
* Summary:
* Notes: Test serialization of outer number types
* Output-Formats: [*/*]
* Output-Formats: [*_/_*]
*/
$app->post('/v2/fake/outer/number', 'FakeApi@fakeOuterNumberSerialize');
/**
* post fakeOuterStringSerialize
* Summary:
* Notes: Test serialization of outer string types
* Output-Formats: [*/*]
* Output-Formats: [*_/_*]
*/
$app->post('/v2/fake/outer/string', 'FakeApi@fakeOuterStringSerialize');
/**