Skip to content

Commit 7f91803

Browse files
committed
docs: deprecate LocaleService::pushLocale() method
1 parent d454a87 commit 7f91803

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/LocaleService.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ public function getLocaleConfig(string $locale, ?string $key = null, $default =
6666
}
6767

6868
/**
69+
* @deprecated This method is redundant and forces the injection of this class as a dependency
70+
* when it could be avoided. Use Laravel trait \Illuminate\Support\Traits\Localizable::withLocale() instead.
71+
*
6972
* @param string $locale
7073
* @param callable $callback
7174
* @return mixed

0 commit comments

Comments
 (0)