forked from loafle/openapi-generator-original
[php-symfony] Fixed a bug with access of non-existing property in generated code (#578)
* [php-symfony] Fixed a bug where Controller accessed non-existent property * [php-symfony] Regenerated petstore sample
This commit is contained in:
committed by
William Cheng
parent
80cf1324c5
commit
76160b53c7
@@ -29,6 +29,7 @@
|
||||
|
||||
namespace OpenAPI\Server\Controller;
|
||||
|
||||
use Symfony\Bundle\FrameworkBundle\Controller\Controller as BaseController;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
use Symfony\Component\HttpKernel\Exception\HttpException;
|
||||
use OpenAPI\Server\Service\SerializerInterface;
|
||||
@@ -42,7 +43,7 @@ use OpenAPI\Server\Service\ValidatorInterface;
|
||||
* @author OpenAPI Generator team
|
||||
* @link https://github.com/openapitools/openapi-generator
|
||||
*/
|
||||
class Controller
|
||||
class Controller extends BaseController
|
||||
{
|
||||
protected $validator;
|
||||
protected $serializer;
|
||||
|
||||
Reference in New Issue
Block a user