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 committed Sep 17, 2024
1 parent 102a054 commit a4018dd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 321 deletions.
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"phpunit/phpunit": "^9",
"sabre/dav": "^4.1",
"sabre/xml": "^2.2",
"symfony/event-dispatcher": "^5.3.11",
"psalm/phar": "^5.9",
"nextcloud/coding-standard": "^1.0",
"nextcloud/ocp": "dev-stable28"
Expand Down
316 changes: 1 addition & 315 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 2 additions & 5 deletions lib/CacheListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,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 a4018dd

Please sign in to comment.