Skip to content

Commit f8e444d

Browse files
committed
Make it clear in the deprecation comment that DI is preferred
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
1 parent 701f785 commit f8e444d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/private/Server.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1705,7 +1705,7 @@ public function getL10NFactory() {
17051705
* @param string $app appid
17061706
* @param string $lang
17071707
* @return IL10N
1708-
* @deprecated 20.0.0 use \OCP\Util::getL10N instead
1708+
* @deprecated 20.0.0 use DI of IL10N instead, or \OCP\Util::getL10N as a last resort
17091709
*/
17101710
public function getL10N($app, $lang = null) {
17111711
return $this->get(IFactory::class)->get($app, $lang);

0 commit comments

Comments
 (0)