From a99c8d90e0856714a23aedba7c73ff0ac20e6c61 Mon Sep 17 00:00:00 2001 From: Tilo Ziegler Date: Wed, 28 Aug 2019 10:29:45 +0200 Subject: [PATCH] removed deprecations in symfony 3.4: DependencyInjection/JMSJobQueueExtension.php: The type "jms_job_safe_object" was explicitly marked as commented in its configuration. This is no longer necessary and will be removed in DoctrineBundle 2.0. Please remove the "commented" attribute from the type configuration. Controller/JobController.php: The "Sensio\Bundle\FrameworkExtraBundle\Configuration\Route" annotation is deprecated since version 5.2. Use "Symfony\Component\Routing\Annotation\Route" instead. --- Controller/JobController.php | 2 +- DependencyInjection/JMSJobQueueExtension.php | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Controller/JobController.php b/Controller/JobController.php index 0719ccf1..73167fe5 100644 --- a/Controller/JobController.php +++ b/Controller/JobController.php @@ -7,7 +7,7 @@ use JMS\JobQueueBundle\Entity\Job; use JMS\JobQueueBundle\Entity\Repository\JobManager; use JMS\JobQueueBundle\View\JobFilter; -use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; +use Symfony\Component\Routing\Annotation\Route; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\RedirectResponse; use Symfony\Component\HttpFoundation\Request; diff --git a/DependencyInjection/JMSJobQueueExtension.php b/DependencyInjection/JMSJobQueueExtension.php index b8be3fab..b00857e7 100644 --- a/DependencyInjection/JMSJobQueueExtension.php +++ b/DependencyInjection/JMSJobQueueExtension.php @@ -66,8 +66,7 @@ public function prepend(ContainerBuilder $container) 'dbal' => array( 'types' => array( 'jms_job_safe_object' => array( - 'class' => SafeObjectType::class, - 'commented' => true, + 'class' => SafeObjectType::class ) ) )