From d0323dafd58175a8f003a892795ad12e716128c8 Mon Sep 17 00:00:00 2001 From: knallcharge <1715912+knallcharge@users.noreply.github.com> Date: Mon, 19 Feb 2024 13:44:30 +0100 Subject: [PATCH] Fixed deprecations and removed symfony/templating (#440) Co-authored-by: MB_GMBH\borisf --- composer.json | 1 - src/Command/ClearOrphansCommand.php | 2 -- src/Resources/config/templating.xml | 1 - src/Templating/Helper/UploaderHelper.php | 3 +-- 4 files changed, 1 insertion(+), 6 deletions(-) diff --git a/composer.json b/composer.json index 89249510..19673e75 100644 --- a/composer.json +++ b/composer.json @@ -38,7 +38,6 @@ "symfony/finder": "^5.4 || ^6.0 || ^7.0", "symfony/framework-bundle": "^5.4 || ^6.0 || ^7.0", "symfony/mime": "^5.4 || ^6.0 || ^7.0", - "symfony/templating": "^5.4 || ^6.0 || ^7.0", "symfony/translation": "^5.4 || ^6.0 || ^7.0", "symfony/translation-contracts": "^1.0 || ^2.0 || ^3.0", "symfony/yaml": "^5.4 || ^6.0 || ^7.0", diff --git a/src/Command/ClearOrphansCommand.php b/src/Command/ClearOrphansCommand.php index 717c59fc..ef2f88dc 100644 --- a/src/Command/ClearOrphansCommand.php +++ b/src/Command/ClearOrphansCommand.php @@ -15,8 +15,6 @@ )] class ClearOrphansCommand extends Command { - protected static $defaultName = 'oneup:uploader:clear-orphans'; - /** * @var OrphanageManager */ diff --git a/src/Resources/config/templating.xml b/src/Resources/config/templating.xml index 8a80df79..0ed80fb4 100644 --- a/src/Resources/config/templating.xml +++ b/src/Resources/config/templating.xml @@ -9,7 +9,6 @@ %oneup_uploader.maxsize% - diff --git a/src/Templating/Helper/UploaderHelper.php b/src/Templating/Helper/UploaderHelper.php index 70e89ae9..f5378176 100644 --- a/src/Templating/Helper/UploaderHelper.php +++ b/src/Templating/Helper/UploaderHelper.php @@ -5,9 +5,8 @@ namespace Oneup\UploaderBundle\Templating\Helper; use Symfony\Component\Routing\RouterInterface; -use Symfony\Component\Templating\Helper\Helper; -class UploaderHelper extends Helper +class UploaderHelper { public function __construct(protected RouterInterface $router, protected array $maxsize) {