X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=doc%2FDeveloper-Domain-Driven-Design.md;h=30520744431753ba2d6310a3ae110db880d3222a;hb=b5f33124be77a43f43ca73007b5df9dab802a02c;hp=1e77dd2f0b65f3cafbe7c58731d33303386166e4;hpb=a40f503fddc9f4b0b7619388e47a7f6d7eaaaff3;p=friendica.git diff --git a/doc/Developer-Domain-Driven-Design.md b/doc/Developer-Domain-Driven-Design.md index 1e77dd2f0b..3052074443 100644 --- a/doc/Developer-Domain-Driven-Design.md +++ b/doc/Developer-Domain-Driven-Design.md @@ -30,7 +30,7 @@ function doSomething(array $intros) } } -$intros = \Friendica\Database\DBA::selectToArray('intros', [], ['uid' => local_user()]); +$intros = \Friendica\Database\DBA::selectToArray('intros', [], ['uid' => Session::getLocalUser()]); doSomething($intros); ``` @@ -47,7 +47,7 @@ function doSomething(\Friendica\Contact\Introductions\Collection\Introductions $ } /** @var $intros \Friendica\Contact\Introductions\Collection\Introductions */ -$intros = \Friendica\DI::intro()->selecForUser(local_user()); +$intros = \Friendica\DI::intro()->selectForUser(Session::getLocalUser()); doSomething($intros); ```