14 Commits

Author SHA1 Message Date
4e4a6c6580 MDL-82110 core: Remove debugging for unmigrated hooks in unit tests 2024-08-20 20:28:50 +08:00
574ea2a02d MDL-82156 core: Remove manually loaded classes
These classes were all introduced in Moodle 4.4.

Originally they were scheduled for removal in MDL-81134, but now that we
have MDL-82156 we can remove them immediately as the autoloader now
checks for the presence of a newer class and resets if that class is not
present in the autoloader cache.
2024-06-14 12:28:56 +08:00
4475617583 MDL-81456 core: Provide info about mocking hooks 2024-04-08 09:39:18 +08:00
4a1752781f MDL-81456 core: Coding style fixups 2024-04-08 09:36:22 +08:00
fa2e11105a MDL-81456 core: Stop injecting test data into real hook manager 2024-04-08 09:36:21 +08:00
788556f652 MDL-80099 hooks: Add mechanism to deprecate class callbacks 2024-03-20 14:58:16 +00:00
bbc98c82c0 MDL-81180 core: Add support for array notation in hook callback 2024-03-11 16:49:54 +08:00
2b7754ccc2 MDL-81011 core: Add attribute alternative to hooks interfaces
This change replaces the requirement for:
- \core\hook\deprecated_callback_replacement
- \core\hook\described_hook

These are replaced by appropriate Attributes.
2024-03-07 18:56:05 +08:00
b2a2d3dc66 MDL-79338 core: add support for hook callback redirection in tests 2023-09-14 11:47:52 +02:00
8a9e5aeb7a MDL-78332 core: fix hook discovery and use is_subclass_of()
And order hooks in admin UI - core first.
2023-05-24 19:53:18 +02:00
0dcb5c4281 MDL-78332 core: remove unnecessary hooks reset method 2023-05-24 14:35:59 +02:00
67ba0d3e83 MDL-74954 core: Detect changes to hook overrides 2023-05-23 16:03:37 +08:00
07a1dc04f8 MDL-74954 core: Add hook discovery feature 2023-05-20 11:03:46 +02:00
99a7a7c782 MDL-74954 core: add Hooks based on PSR-14 2023-05-20 11:03:46 +02:00