[PHP] Decommission "packagePath", add new option "packageName" (#681)

* remove packagePath from php file location, use -o instead

* fix php symfony top folder

* restore pacakgePath

* update php laraavel samples

* remove packagePath from PHP generator

* add new silex files

* update window batch - php silex

* fix openapi3 silex script
This commit is contained in:
William Cheng
2018-08-06 18:10:34 +08:00
committed by GitHub
parent 1ab4fe43b5
commit c116c8fb9b
34 changed files with 197 additions and 135 deletions

View File

@@ -31,14 +31,14 @@ class AnotherFakeController extends Controller
}
/**
* Operation 123testSpecialTags
* Operation call123TestSpecialTags
*
* To test special tags.
*
*
* @return Http response
*/
public function 123testSpecialTags()
public function call123TestSpecialTags()
{
$input = Request::all();
@@ -47,11 +47,11 @@ class AnotherFakeController extends Controller
//not path params validation
if (!isset($input['client'])) {
throw new \InvalidArgumentException('Missing the required parameter $client when calling 123testSpecialTags');
throw new \InvalidArgumentException('Missing the required parameter $client when calling call123TestSpecialTags');
}
$client = $input['client'];
return response('How about implementing 123testSpecialTags as a patch method ?');
return response('How about implementing call123TestSpecialTags as a patch method ?');
}
}

View File

@@ -17,12 +17,12 @@
*/
/**
* patch 123testSpecialTags
* patch call123TestSpecialTags
* Summary: To test special tags
* Notes: To test special tags and operation ID starting with number
* Output-Formats: [application/json]
*/
Route::patch('/v2/another-fake/dummy', 'AnotherFakeController@123testSpecialTags');
Route::patch('/v2/another-fake/dummy', 'AnotherFakeController@call123TestSpecialTags');
/**
* patch testClientModel
* Summary: To test \"client\" model