From 47dd9cbcefa5a7f83f31dcdf65443b833a6774d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Hrdina?= <rene.hrdina@styleflasher.at> Date: Thu, 7 Oct 2021 13:06:08 +0000 Subject: [PATCH] ensure symfony 5 compatibility --- bundle/Controller/DownloadController.php | 6 ++---- bundle/DependencyInjection/Configuration.php | 4 ++-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/bundle/Controller/DownloadController.php b/bundle/Controller/DownloadController.php index a30a714..104acb5 100644 --- a/bundle/Controller/DownloadController.php +++ b/bundle/Controller/DownloadController.php @@ -9,14 +9,12 @@ use Netgen\Bundle\InformationCollectionBundle\Entity\EzInfoCollectionAttribute; use Netgen\Bundle\InformationCollectionBundle\Repository\EzInfoCollectionAttributeRepository; use Netgen\Bundle\InformationCollectionBundle\Repository\EzInfoCollectionRepository; -use Symfony\Bundle\FrameworkBundle\Controller\ControllerTrait; +use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\ResponseHeaderBag; use Symfony\Component\Security\Core\Exception\AccessDeniedException; -class DownloadController +class DownloadController extends AbstractController { - use ControllerTrait; - private $infocollectionAttributeRepository; private $infocollectionRepository; diff --git a/bundle/DependencyInjection/Configuration.php b/bundle/DependencyInjection/Configuration.php index 4a7ec0c..5aae2e2 100644 --- a/bundle/DependencyInjection/Configuration.php +++ b/bundle/DependencyInjection/Configuration.php @@ -12,8 +12,8 @@ class Configuration implements ConfigurationInterface */ public function getConfigTreeBuilder() { - $treeBuilder = new TreeBuilder(); - $rootNode = $treeBuilder->root('netgen_enhanced_ez_binary_file'); + $treeBuilder = new TreeBuilder('netgen_enhanced_ez_binary_file'); + $rootNode = $treeBuilder->getRootNode(); return $treeBuilder; }