Previously, clear() and scopedRegister() would not disable hook handlers registered using the new mechanism. Only old style hook handlers would be suppressed. The new implementation is based on tombstones: Instead of actually removing registered handlers to override them, tombstone markers are put into place to disable existing handlers until the tombstone is removed again. This allows hook handlers to be disabled temporarily in a consistent way. This removes HookContainer::getOriginalHooksForTest(), which is incompatible with the new logic. Bug: T255056 Change-Id: I08c1824797ac60a5098a52b5781af8ac4dd38928 |
||
|---|---|---|
| .. | ||
| DeprecatedHooksTest.php | ||
| HookContainerTest.php | ||