File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ use App\Entity\Product;
35
35
use App\Exception\ProductNotFoundException;
36
36
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
37
37
use Symfony\Component\HttpFoundation\Request;
38
- use Symfony\Component\HttpKernel\Event\GetResponseForControllerResultEvent ;
38
+ use Symfony\Component\HttpKernel\Event\ViewEvent ;
39
39
use Symfony\Component\HttpKernel\KernelEvents;
40
40
41
41
final class ProductManager implements EventSubscriberInterface
@@ -47,7 +47,7 @@ final class ProductManager implements EventSubscriberInterface
47
47
];
48
48
}
49
49
50
- public function checkProductAvailability(GetResponseForControllerResultEvent $event): void
50
+ public function checkProductAvailability(ViewEvent $event): void
51
51
{
52
52
$product = $event->getControllerResult();
53
53
if (!$product instanceof Product || !$event->getRequest()->isMethodSafe(false)) {
You can’t perform that action at this time.
0 commit comments