Skip to content

Commit 22e1e4e

Browse files
authored
[PHP-Symfony] fix name mismatch in generated README (#15961) (#15963)
This fixes the generated README so it suggests to implement the `class DefaultApi` in a file named DefaultApi.php (instead of DefaultApiInterface.php)
1 parent 7572e73 commit 22e1e4e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

  • modules/openapi-generator/src/main/resources/php-symfony
  • samples/server/petstore/php-symfony/SymfonyBundle-php

modules/openapi-generator/src/main/resources/php-symfony/README.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ Step 4: Implement the API calls:
7878

7979
```php
8080
<?php{{#apiInfo}}{{#apis}}{{#-first}}{{#operations}}
81-
// src/Acme/MyBundle/Api/{{classname}}.php
81+
// src/Acme/MyBundle/Api/{{baseName}}Api.php
8282

8383
namespace Acme\MyBundle\Api;
8484

samples/server/petstore/php-symfony/SymfonyBundle-php/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Step 4: Implement the API calls:
6767
6868
```php
6969
<?php
70-
// src/Acme/MyBundle/Api/PetApiInterface.php
70+
// src/Acme/MyBundle/Api/PetApi.php
7171

7272
namespace Acme\MyBundle\Api;
7373

0 commit comments

Comments
 (0)