Add the app id to the markProcessed method
This commit is contained in:
parent
0bcae89d14
commit
f0ecfa6e6c
|
@ -155,16 +155,17 @@ class Manager implements IManager {
|
|||
}
|
||||
|
||||
/**
|
||||
* @param string $appId
|
||||
* @param string $objectType
|
||||
* @param int $objectId
|
||||
* @param string $user
|
||||
* @return null
|
||||
*/
|
||||
public function markProcessed($objectType, $objectId, $user = '') {
|
||||
public function markProcessed($appId, $objectType, $objectId, $user = '') {
|
||||
$apps = $this->getApps();
|
||||
|
||||
foreach ($apps as $app) {
|
||||
$app->markProcessed($objectType, $objectId, $user);
|
||||
$app->markProcessed($appId, $objectType, $objectId, $user);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -41,13 +41,14 @@ interface IApp {
|
|||
public function notify(INotification $notification);
|
||||
|
||||
/**
|
||||
* @param string $appId
|
||||
* @param string $objectType
|
||||
* @param int $objectId
|
||||
* @param string $user
|
||||
* @return null
|
||||
* @since 8.2.0
|
||||
*/
|
||||
public function markProcessed($objectType, $objectId, $user = '');
|
||||
public function markProcessed($appId, $objectType, $objectId, $user = '');
|
||||
|
||||
/**
|
||||
* @param string $user
|
||||
|
|
Loading…
Reference in New Issue