]> git.mxchange.org Git - friendica.git/blobdiff - doc/Developer-Domain-Driven-Design.md
Merge pull request #11428 from annando/issue-11425
[friendica.git] / doc / Developer-Domain-Driven-Design.md
index b8d886aa0db3da91852d4bd3a4cee53d96e21d15..1e77dd2f0b65f3cafbe7c58731d33303386166e4 100644 (file)
@@ -36,17 +36,18 @@ doSomething($intros);
 ```
 
 After:
+
 ```php
-function doSomething(\Friendica\Collection\Introductions $intros)
+function doSomething(\Friendica\Contact\Introductions\Collection\Introductions $intros)
 {
     foreach ($intros as $intro) {
-        /** @var $intro \Friendica\Model\Introduction */
+        /** @var $intro \Friendica\Contact\Introductions\Entity\Introduction */
         $introId = $intro->id;
     }
 }
 
-/** @var $intros \Friendica\Collection\Introductions */
-$intros = \Friendica\DI::intro()->select(['uid' => local_user()]);
+/** @var $intros \Friendica\Contact\Introductions\Collection\Introductions */
+$intros = \Friendica\DI::intro()->selecForUser(local_user());
 
 doSomething($intros);
 ```