mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-07 22:17:17 +02:00
Move Introduction to new depository paradigm
This commit is contained in:
parent
4c0e00fa4f
commit
a40f503fdd
14 changed files with 380 additions and 179 deletions
|
@ -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);
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue