Skip to content

Commit

Permalink
[php-symfony] Fixed a bug with access of non-existing property in gen…
Browse files Browse the repository at this point in the history
…erated code (#578)

* [php-symfony] Fixed a bug where Controller accessed non-existent property

* [php-symfony] Regenerated petstore sample
  • Loading branch information
dimitriyremerov authored and wing328 committed Jul 19, 2018
1 parent 80cf132 commit 76160b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

namespace {{controllerPackage}};

use Symfony\Bundle\FrameworkBundle\Controller\Controller as BaseController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Exception\HttpException;
use {{servicePackage}}\SerializerInterface;
Expand All @@ -32,7 +33,7 @@ use {{servicePackage}}\ValidatorInterface;
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
class Controller
class Controller extends BaseController
{
protected $validator;
protected $serializer;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -42,7 +43,7 @@
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
class Controller
class Controller extends BaseController
{
protected $validator;
protected $serializer;
Expand Down

0 comments on commit 76160b5

Please # to comment.