mirror of
https://github.com/friendica/friendica
synced 2025-04-19 07:10:11 +00:00
Replace Module::init() with Constructors
This commit is contained in:
parent
de6bb280b1
commit
ce578a7745
33 changed files with 882 additions and 600 deletions
|
@ -22,6 +22,7 @@
|
|||
namespace Friendica\Module\Profile;
|
||||
|
||||
use Friendica\BaseModule;
|
||||
use Friendica\Core\L10n;
|
||||
|
||||
/**
|
||||
* Profile index router
|
||||
|
@ -34,13 +35,18 @@ use Friendica\BaseModule;
|
|||
*/
|
||||
class Index extends BaseModule
|
||||
{
|
||||
public function __construct(L10n $l10n, array $parameters = [])
|
||||
{
|
||||
parent::__construct($l10n, $parameters);
|
||||
}
|
||||
|
||||
public function rawContent()
|
||||
{
|
||||
(new Profile($this->parameters))->rawContent();
|
||||
(new Profile($this->l10n, $this->parameters))->rawContent();
|
||||
}
|
||||
|
||||
public function content(): string
|
||||
{
|
||||
return (new Status($this->parameters))->content();
|
||||
return (new Status($this->l10n, $this->parameters))->content();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue