Skip to content

Commit ff793fe

Browse files
committed
Mark \Symfony\Component\Translation\Translator::doLoadCatalogue internal
It was made protected to allow the FrameworkBundle's Translator to extend it, but it should not be extended in userland.
1 parent bccbe64 commit ff793fe

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Symfony/Component/Translation/Translator.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,9 @@ private function getCatalogueCachePath($locale)
395395
return $this->cacheDir.'/catalogue.'.$locale.'.'.strtr(substr(base64_encode(hash('sha256', serialize($this->fallbackLocales), true)), 0, 7), '/', '_').'.php';
396396
}
397397

398+
/**
399+
* @internal
400+
*/
398401
protected function doLoadCatalogue($locale): void
399402
{
400403
$this->catalogues[$locale] = new MessageCatalogue($locale);

0 commit comments

Comments
 (0)