symfony 5.4 compatibility

This commit is contained in:
Alexey Chelnakov 2022-10-19 17:14:07 +03:00
parent 6abd901696
commit 9792e54037
2 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@ use Nelmio\ApiDocBundle\Extractor\ApiDocExtractor;
use Nelmio\ApiDocBundle\Formatter\FormatterInterface;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\HttpKernelInterface;
use Symfony\Component\HttpKernel\Event\GetResponseEvent;
use Symfony\Component\HttpKernel\Event\RequestEvent;
class RequestListener
{
@ -44,7 +44,7 @@ class RequestListener
/**
* {@inheritdoc}
*/
public function onKernelRequest(GetResponseEvent $event)
public function onKernelRequest(RequestEvent $event)
{
if (HttpKernelInterface::MASTER_REQUEST !== $event->getRequestType()) {
return;

View File

@ -23,7 +23,7 @@ use Symfony\Component\Form\FormInterface;
use Symfony\Component\Form\FormTypeInterface;
use Symfony\Component\Form\ResolvedFormTypeInterface;
use Symfony\Component\OptionsResolver\Exception\MissingOptionsException;
use Symfony\Component\Translation\TranslatorInterface;
use Symfony\Contracts\Translation\TranslatorInterface;
class FormTypeParser implements ParserInterface
{