Skip to content

Commit

Permalink
Make it clear in the deprecation comment that DI is preferred
Browse files Browse the repository at this point in the history
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
  • Loading branch information
come-nc committed Sep 26, 2023
1 parent 701f785 commit f8e444d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -1705,7 +1705,7 @@ public function getL10NFactory() {
* @param string $app appid
* @param string $lang
* @return IL10N
* @deprecated 20.0.0 use \OCP\Util::getL10N instead
* @deprecated 20.0.0 use DI of IL10N instead, or \OCP\Util::getL10N as a last resort
*/
public function getL10N($app, $lang = null) {
return $this->get(IFactory::class)->get($app, $lang);
Expand Down

0 comments on commit f8e444d

Please sign in to comment.