X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FBaseModule.php;h=aaca6c5311e162ea3e6cabb2b79efc3cebbce973;hb=c732027b04f674d186ee8652280313f25eedbd9a;hp=be4788045c2d283d73c5c30080c1ebf661ee7710;hpb=0b6e0566d75e145afb92dca61325fd423ed6f2eb;p=friendica.git diff --git a/src/BaseModule.php b/src/BaseModule.php index be4788045c..aaca6c5311 100644 --- a/src/BaseModule.php +++ b/src/BaseModule.php @@ -22,7 +22,6 @@ namespace Friendica; use Friendica\Capabilities\ICanHandleRequests; -use Friendica\Core\L10n; use Friendica\Core\Logger; use Friendica\Model\User; @@ -40,33 +39,16 @@ abstract class BaseModule implements ICanHandleRequests /** @var array */ protected $parameters = []; - /** @var L10n */ - protected $l10n; - - public function __construct(L10n $l10n, array $parameters = []) + public function __construct(array $parameters = []) { $this->parameters = $parameters; - $this->l10n = $l10n; } /** - * Wraps the L10n::t() function for Modules - * - * @see L10n::t() - */ - protected function t(string $s, ...$args): string - { - return $this->l10n->t($s, $args); - } - - /** - * Wraps the L10n::tt() function for Modules - * - * @see L10n::tt() + * {@inheritDoc} */ - protected function tt(string $singular, string $plurarl, int $count): string + public function init() { - return $this->l10n->tt($singular, $plurarl, $count); } /**