Skip to content

Commit 47dd9cb

Browse files
author
René Hrdina
committed
ensure symfony 5 compatibility
1 parent 51d00c0 commit 47dd9cb

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

bundle/Controller/DownloadController.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,12 @@
99
use Netgen\Bundle\InformationCollectionBundle\Entity\EzInfoCollectionAttribute;
1010
use Netgen\Bundle\InformationCollectionBundle\Repository\EzInfoCollectionAttributeRepository;
1111
use Netgen\Bundle\InformationCollectionBundle\Repository\EzInfoCollectionRepository;
12-
use Symfony\Bundle\FrameworkBundle\Controller\ControllerTrait;
12+
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
1313
use Symfony\Component\HttpFoundation\ResponseHeaderBag;
1414
use Symfony\Component\Security\Core\Exception\AccessDeniedException;
1515

16-
class DownloadController
16+
class DownloadController extends AbstractController
1717
{
18-
use ControllerTrait;
19-
2018
private $infocollectionAttributeRepository;
2119

2220
private $infocollectionRepository;

bundle/DependencyInjection/Configuration.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ class Configuration implements ConfigurationInterface
1212
*/
1313
public function getConfigTreeBuilder()
1414
{
15-
$treeBuilder = new TreeBuilder();
16-
$rootNode = $treeBuilder->root('netgen_enhanced_ez_binary_file');
15+
$treeBuilder = new TreeBuilder('netgen_enhanced_ez_binary_file');
16+
$rootNode = $treeBuilder->getRootNode();
1717

1818
return $treeBuilder;
1919
}

0 commit comments

Comments
 (0)