Skip to content

Commit c664b86

Browse files
committed
Merge branch '3.2' into 3.3
* 3.2: (42 commits) Show exception is checked twice in ExceptionController of twig allow SSI fragments configuration in XML files Display a better error message when the toolbar cannot be displayed render hidden _method field in form_rest() Add Doctrine Cache to dev dependencies to fix failing unit tests. return fallback locales whenever possible [Console] Fix catching exception type in QuestionHelper [WebProfilerBundle] Eliminate line wrap on count columnt (routing) [Routing] Fix XmlFileLoader exception message [Translation] Fix FileLoader::loadResource() php doc Sessions: configurable "use_strict_mode" option for NativeSessionStorage [FrameworkBundle] [Command] Clean bundle directory, fixes #23177 Reset redirectCount when throwing exception [TwigBundle] Remove template.xml services when templating is disabled add content-type header on exception response Embedding a response that combines expiration and validation, that should not defeat expiration on the combined response fixed bad merge Fix two edge cases in ResponseCacheStrategy [Routing] Expose request in route conditions, if needed and possible [Routing] Expose request in route conditions, if needed and possible ...
2 parents dc3b2a0 + d7f7504 commit c664b86

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

DataCollectorTranslator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public function getCatalogue($locale = null)
9797
*/
9898
public function getFallbackLocales()
9999
{
100-
if ($this->translator instanceof Translator) {
100+
if ($this->translator instanceof Translator || method_exists($this->translator, 'getFallbackLocales')) {
101101
return $this->translator->getFallbackLocales();
102102
}
103103

Loader/FileLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function load($resource, $locale, $domain = 'messages')
5454
return $catalogue;
5555
}
5656

57-
/*
57+
/**
5858
* @param string $resource
5959
*
6060
* @return array

LoggingTranslator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public function getCatalogue($locale = null)
9696
*/
9797
public function getFallbackLocales()
9898
{
99-
if ($this->translator instanceof Translator) {
99+
if ($this->translator instanceof Translator || method_exists($this->translator, 'getFallbackLocales')) {
100100
return $this->translator->getFallbackLocales();
101101
}
102102

0 commit comments

Comments
 (0)