mirror of
https://github.com/friendica/friendica
synced 2025-04-27 11:10:12 +00:00
Rename classes
- Repository/Model Notification => Notify - Factory/Object Notification => Notification
This commit is contained in:
parent
b85511b00d
commit
0840938dff
12 changed files with 45 additions and 45 deletions
|
@ -15,7 +15,7 @@ use Friendica\Database\Database;
|
|||
use Friendica\Model\Contact;
|
||||
use Friendica\Module\BaseNotifications;
|
||||
use Friendica\Network\HTTPException\InternalServerErrorException;
|
||||
use Friendica\Object\Notification\Introduction;
|
||||
use Friendica\Object;
|
||||
use Friendica\Util\Proxy;
|
||||
use Psr\Log\LoggerInterface;
|
||||
|
||||
|
@ -25,7 +25,7 @@ use Psr\Log\LoggerInterface;
|
|||
* - Friend suggestion
|
||||
* - Friend/Follower request
|
||||
*/
|
||||
class IntroductionFactory extends BaseFactory
|
||||
class Introduction extends BaseFactory
|
||||
{
|
||||
/** @var Database */
|
||||
private $dba;
|
||||
|
@ -61,7 +61,7 @@ class IntroductionFactory extends BaseFactory
|
|||
* @param int $limit Maximum number of query results
|
||||
* @param int $id When set, only the introduction with this id is displayed
|
||||
*
|
||||
* @return Introduction[]
|
||||
* @return Object\Notification\Introduction[]
|
||||
*/
|
||||
public function getList(bool $all = false, int $start = 0, int $limit = BaseNotifications::DEFAULT_PAGE_LIMIT, int $id = 0)
|
||||
{
|
|
@ -16,7 +16,7 @@ use Friendica\Model\Item;
|
|||
use Friendica\Module\BaseNotifications;
|
||||
use Friendica\Network\HTTPException\InternalServerErrorException;
|
||||
use Friendica\Protocol\Activity;
|
||||
use Friendica\Repository\Notification;
|
||||
use Friendica\Repository;
|
||||
use Friendica\Util\DateTimeFormat;
|
||||
use Friendica\Util\Proxy;
|
||||
use Friendica\Util\Temporal;
|
||||
|
@ -31,11 +31,11 @@ use Psr\Log\LoggerInterface;
|
|||
* - home
|
||||
* - personal
|
||||
*/
|
||||
class NotificationFactory extends BaseFactory
|
||||
class Notification extends BaseFactory
|
||||
{
|
||||
/** @var Database */
|
||||
private $dba;
|
||||
/** @var Notification */
|
||||
/** @var Repository\Notify */
|
||||
private $notification;
|
||||
/** @var BaseURL */
|
||||
private $baseUrl;
|
||||
|
@ -44,7 +44,7 @@ class NotificationFactory extends BaseFactory
|
|||
/** @var string */
|
||||
private $nurl;
|
||||
|
||||
public function __construct(LoggerInterface $logger, Database $dba, Notification $notification, BaseURL $baseUrl, L10n $l10n, App $app, IPConfig $pConfig, ISession $session)
|
||||
public function __construct(LoggerInterface $logger, Database $dba, Repository\Notify $notification, BaseURL $baseUrl, L10n $l10n, App $app, IPConfig $pConfig, ISession $session)
|
||||
{
|
||||
parent::__construct($logger);
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue