Skip to content

Commit

Permalink
fix(CacheListener): Use OCP IEventDispatcher
Browse files Browse the repository at this point in the history
Signed-off-by: provokateurin <kate@provokateurin.de>
  • Loading branch information
provokateurin authored and backportbot[bot] committed Sep 17, 2024
1 parent 4b3969d commit 2ba775f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/CacheListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,13 @@
namespace OCA\GroupFolders;

use OCA\GroupFolders\Mount\GroupFolderStorage;
use OCP\EventDispatcher\IEventDispatcher;
use OCP\Files\Cache\CacheInsertEvent;
use OCP\Files\Cache\CacheUpdateEvent;
use OCP\Files\Cache\ICacheEvent;
use Symfony\Component\EventDispatcher\EventDispatcher;

class CacheListener {
private EventDispatcher $eventDispatcher;

public function __construct(EventDispatcher $eventDispatcher) {
$this->eventDispatcher = $eventDispatcher;
public function __construct(private IEventDispatcher $eventDispatcher) {
}

public function listen(): void {
Expand Down

0 comments on commit 2ba775f

Please sign in to comment.