Skip to content

Commit 27bff78

Browse files
Merge pull request #84 from nextcloud-libraries/bugfix/22/migrate-cache-events
2 parents bc29e9f + 48925c7 commit 27bff78

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

config/nextcloud-25/nextcloud-25-deprecations.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
use Nextcloud\Rector\Rector\OcpUtilAddScriptRector;
88
use Nextcloud\Rector\ValueObject\LegacyGetterToOcpServerGet;
99
use Rector\Config\RectorConfig;
10+
use Rector\Renaming\Rector\Name\RenameClassRector;
1011
use Rector\Renaming\Rector\StaticCall\RenameStaticMethodRector;
1112
use Rector\Renaming\ValueObject\RenameStaticMethod;
1213

@@ -207,4 +208,14 @@
207208
new LegacyGetterToOcpServerGet('getGeneratorHelper', 'OC\Preview\GeneratorHelper'),
208209
],
209210
);
211+
212+
$rectorConfig->ruleWithConfiguration(
213+
RenameClassRector::class,
214+
[
215+
// Deprecated since 21.0.0
216+
'OCP\Files\Cache\CacheInsertEvent' => 'OCP\Files\Cache\CacheEntryInsertedEvent',
217+
// Deprecated since 21.0.0
218+
'OCP\Files\Cache\CacheUpdateEvent' => 'OCP\Files\Cache\CacheEntryUpdatedEvent',
219+
],
220+
);
210221
};

0 commit comments

Comments
 (0)