Skip to content
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.

Commit

Permalink
Double slash (#7)
Browse files Browse the repository at this point in the history
* Fix double slash

* Update changelog
  • Loading branch information
DerManoMann authored Sep 5, 2017
1 parent 832c1fe commit b920688
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/.idea
/vendor
/composer.lock
/bin/swagger
Expand Down
3 changes: 3 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,6 @@ For a more complete example have a look at the included Symfony Console command.

### v2.0.1
* Update dependencies for ddesrosiers/silex-annotation-provider to the official 2.0 version

### v2.0.2
* Fix double slash being created using ````@Controller```` without a prefix
2 changes: 1 addition & 1 deletion src/Silex/Swagger/Silex2SwaggerConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ protected function migrateRequest(SLX\Request $request, Context $context, array
foreach (explode('|', $methods) as $method) {
$method = trim($method);
// for now we need this...
$path = '/'.$request->uri;
$path = str_replace('//', '/', '/'.$request->uri);

$swgClass = 'Swagger\\Annotations\\'.ucfirst($method);
/** @var SWG\Operation $swgOperation */
Expand Down

0 comments on commit b920688

Please sign in to comment.