8000 [Translator] Add argument `$buildDir` to `DataCollectorTranslator::wa… · symfony/symfony@d18bd27 · GitHub
[go: up one dir, main page]

Skip to content

Commit d18bd27

Browse files
[Translator] Add argument $buildDir to DataCollectorTranslator::warmUp()
1 parent 4b3ad55 commit d18bd27

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

UPGRADE-6.4.md

+5
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,11 @@ Templating
213213

214214
* The component is deprecated and will be removed in 7.0, use [Twig](https://twig.symfony.com) instead
215215

216+
Translator
217+
----------
218+
219+
* [BC Break] Add argument `$buildDir` to `DataCollectorTranslator::warmUp()`
220+
216221
Validator
217222
---------
218223

src/Symfony/Component/Translation/CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ CHANGELOG
66

77
* Give current locale to `LocaleSwitcher::runWithLocale()`'s callback
88
* Add `--as-tree` option to `translation:pull` command to write YAML messages as a tree-like structure
9+
* [BC BREAK] Add argument `$buildDir` to `DataCollectorTranslator::warmUp()`
910

1011
6.3
1112
---

src/Symfony/Component/Translation/DataCollectorTranslator.php

+1-6
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,8 @@ public function getCatalogues(): array
7171
return $this->translator->getCatalogues();
7272
}
7373

74-
/**
75-
* @param string|null $buildDir
76-
*/
77-
public function warmUp(string $cacheDir /* , string $buildDir = null */): array
74+
public function warmUp(string $cacheDir, string $buildDir = null): array
7875
{
79-
$buildDir = 1 < \func_num_args() ? func_get_arg(1) : null;
80-
8176
if ($this->translator instanceof WarmableInterface) {
8277
return (array) $this->translator->warmUp($cacheDir, $buildDir);
8378
}

src/Symfony/Component/Translation/composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"symfony/console": "^5.4|^6.0|^7.0",
2828
"symfony/dependency-injection": "^5.4|^6.0|^7.0",
2929
"symfony/http-client-contracts": "^2.5|^3.0",
30-
"symfony/http-kernel": "^5.4|^6.0",
30+
"symfony/http-kernel": "^5.4|^6.0|^7.0",
3131
"symfony/intl": "^5.4|^6.0|^7.0",
3232
"symfony/polyfill-intl-icu": "^1.21",
3333
"symfony/routing": "^5.4|^6.0|^7.0",
@@ -40,7 +40,7 @@
4040
"symfony/config": "<5.4",
4141
"symfony/dependency-injection": "<5.4",
4242
"symfony/http-client-contracts": "<2.5",
43-
"symfony/http-kernel": "<5.4|>=7.0",
43+
"symfony/http-kernel": "<5.4",
4444
"symfony/service-contracts": "<2.5",
4545
"symfony/twig-bundle": "<5.4",
4646
"symfony/yaml": "<5.4",

0 commit comments

Comments
 (0)
0