Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 66843eb

Browse files
authored
bug #11822 Bugfix | Fixed wrong Symfony controller class usage (stloyd)
This PR was merged into the 1.8 branch. Discussion ---------- | Q | A | --------------- | ----- | Branch? | 1.8 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Related tickets | partially #10928 | License | MIT <!-- - Bug fixes must be submitted against the 1.7 branch (the lowest possible) - Features and deprecations must be submitted against the master branch - Make sure that the correct base branch is set To be sure you are not breaking any Backward Compatibilities, check the documentation: https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html --> Commits ------- 50a8830 Fixed wrong Symfony controller class usage
2 parents 29a9fbb + 50a8830 commit 66843eb

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/Sylius/Bundle/ProductBundle/Controller/ProductSlugController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313

1414
namespace Sylius\Bundle\ProductBundle\Controller;
1515

16-
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
16+
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
1717
use Symfony\Component\HttpFoundation\JsonResponse;
1818
use Symfony\Component\HttpFoundation\Request;
1919
use Symfony\Component\HttpFoundation\Response;
2020

21-
class ProductSlugController extends Controller
21+
class ProductSlugController extends AbstractController
2222
{
2323
public function generateAction(Request $request): Response
2424
{

src/Sylius/Bundle/UserBundle/Controller/SecurityController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414
namespace Sylius\Bundle\UserBundle\Controller;
1515

1616
use Sylius\Bundle\UserBundle\Form\Type\UserLoginType;
17-
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
17+
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
1818
use Symfony\Component\HttpFoundation\Request;
1919
use Symfony\Component\HttpFoundation\Response;
2020
use Webmozart\Assert\Assert;
2121

22-
class SecurityController extends Controller
22+
class SecurityController extends AbstractController
2323
{
2424
/**
2525
* Login form action.

0 commit comments

Comments
 (0)