Skip to content

Commit b335b01

Browse files
author
Ian Thomas
committed
Replace deprecated TranslatorInterface (depends on Symfony 4.2) #123
As documented in UPGRADE-4.2.md. Minimum Symfony version raised from 3.4 to 4.2. Explict dependency added for symfony/translation.
1 parent e7592f6 commit b335b01

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

Controller/UploadController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use Symfony\Component\HttpFoundation\Response;
99
use Symfony\Component\HttpFoundation\File\UploadedFile;
1010
use Symfony\Component\HttpFoundation\StreamedResponse;
11-
use Symfony\Component\Translation\TranslatorInterface;
11+
use Symfony\Contracts\Translation\TranslatorInterface;
1212

1313
use Symfony\Component\Finder\Finder;
1414

composer.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,13 @@
1515
"require": {
1616
"php": ">=7.1.3",
1717
"ext-gd": "*",
18-
"symfony/http-foundation": "~3.4 || ~4.2 || ~5.0",
19-
"symfony/form": "~3.4 || ~4.2 || ~5.0",
20-
"symfony/validator": "~3.4 || ~4.2 || ~5.0",
21-
"symfony/routing": "~3.4 || ~4.2 || ~5.0",
22-
"symfony/config": "~3.4 || ~4.2 || ~5.0",
23-
"symfony/twig-bridge": "~3.4 || ~4.2 || ~5.0",
18+
"symfony/http-foundation": "~4.2 || ~5.0",
19+
"symfony/form": "~4.2 || ~5.0",
20+
"symfony/validator": "~4.2 || ~5.0",
21+
"symfony/routing": "~4.2 || ~5.0",
22+
"symfony/config": "~4.2 || ~5.0",
23+
"symfony/translation": "~4.2 || ~5.0",
24+
"symfony/twig-bridge": "~4.2 || ~5.0",
2425
"twig/twig": "^1.41 || ^2.10 || ~3.0",
2526
"twig/extensions": "~1.0",
2627
"friendsofsymfony/jsrouting-bundle": "@stable",

0 commit comments

Comments
 (0)