Skip to content

Commit

Permalink
Disable notification
Browse files Browse the repository at this point in the history
  • Loading branch information
orzuionut committed Jun 15, 2021
1 parent 14b0f2f commit ab45740
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions w2g2/lib/Activity/EventHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,22 @@
namespace OCA\w2g2\Activity;

use OCA\w2g2\Activity\ActivityListener;
use OCA\w2g2\Notification\NotificationListener;
//use OCA\w2g2\Notification\NotificationListener;

class EventHandler {
private $activityListener;
private $notificationListener;

public function __construct(ActivityListener $activityListener, NotificationListener $notificationListener)
// public function __construct(ActivityListener $activityListener, NotificationListener $notificationListener)
public function __construct(ActivityListener $activityListener)
{
$this->activityListener = $activityListener;
$this->notificationListener = $notificationListener;
// $this->notificationListener = $notificationListener;
}

public function handle(FileLockEvent $event) {
$this->activityHandler($event);
$this->notificationHandler($event);
// $this->notificationHandler($event);
}

private function activityHandler(FileLockEvent $event) {
Expand Down

0 comments on commit ab45740

Please sign in to comment.