X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FBaseModule.php;h=5d752bb4f7450065bec2642c8f997fa8f067c91c;hb=ce578a77453fd421e9598c994ef008ad7e128de6;hp=aaca6c5311e162ea3e6cabb2b79efc3cebbce973;hpb=8f741c8b78e37fc8a93061fae96195bb7a82d3bb;p=friendica.git diff --git a/src/BaseModule.php b/src/BaseModule.php index aaca6c5311..5d752bb4f7 100644 --- a/src/BaseModule.php +++ b/src/BaseModule.php @@ -22,6 +22,7 @@ namespace Friendica; use Friendica\Capabilities\ICanHandleRequests; +use Friendica\Core\L10n; use Friendica\Core\Logger; use Friendica\Model\User; @@ -39,16 +40,13 @@ abstract class BaseModule implements ICanHandleRequests /** @var array */ protected $parameters = []; - public function __construct(array $parameters = []) - { - $this->parameters = $parameters; - } + /** @var L10n */ + protected $l10n; - /** - * {@inheritDoc} - */ - public function init() + public function __construct(L10n $l10n, array $parameters = []) { + $this->parameters = $parameters; + $this->l10n = $l10n; } /**