Skip to content

Commit

Permalink
ensure symfony 5 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
René Hrdina committed Oct 7, 2021
1 parent 51d00c0 commit 47dd9cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions bundle/Controller/DownloadController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions bundle/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 47dd9cb

Please sign in to comment.