Andrew Nicols
4475617583
MDL-81456 core: Provide info about mocking hooks
2024-04-08 09:39:18 +08:00
Andrew Nicols
4a1752781f
MDL-81456 core: Coding style fixups
2024-04-08 09:36:22 +08:00
Andrew Nicols
fa2e11105a
MDL-81456 core: Stop injecting test data into real hook manager
2024-04-08 09:36:21 +08:00
Huong Nguyen
857fe04b95
Merge branch 'MDL-79131-main' of https://github.com/raortegar/moodle
2024-04-04 10:31:46 +08:00
Ilya Tregubov
ddc1c5ee9a
Merge branch 'MDL-81144-main' of https://github.com/andrewnicols/moodle
2024-04-04 10:30:37 +08:00
raortegar
abefcdb09a
MDL-79131 core: Added new Hook instance for task failed max delay
2024-04-03 09:08:50 +02:00
Andrew Nicols
9bd3228d69
MDL-81144 core: Standardise init of standard_head_html_prepend hook
2024-04-02 10:23:44 +08:00
Andrew Nicols
305248f41d
MDL-81144 core: Convert before_http_headers
2024-04-02 10:23:44 +08:00
Andrew Nicols
679001e729
MDL-81144 core: Convert before_footer to hook
2024-04-02 10:23:44 +08:00
Andrew Nicols
e4a8ed5cc2
MDL-81144 core: Convert standard_after_main_region_html to hook
2024-04-02 10:23:43 +08:00
Andrew Nicols
ecd5274e74
MDL-81144 core: Convert add_htmlattributes to hook
2024-04-02 10:23:42 +08:00
Andrew Nicols
770e6b49f4
MDL-81144 core: Convert standard_footer_html to hook
2024-04-02 10:23:41 +08:00
Andrew Nicols
3105ea7dc2
MDL-81144 core: Convert before_standard_top_of_body_html to hook
2024-04-02 10:23:41 +08:00
Andrew Nicols
bb80e4f90d
MDL-80332 core: Coding style fixes
2024-03-26 22:43:12 +08:00
Andrew Nicols
c9030a8243
Merge branch 'MDL-80332-master' of https://github.com/jleyva/moodle
2024-03-26 22:10:29 +08:00
Huong Nguyen
b283ca354e
Merge branch 'MDL-78551-main' of https://github.com/safatshahin/moodle
2024-03-26 10:08:06 +07:00
Safat
fc7127e867
MDL-78551 core_access: Add support for hooks api
2024-03-26 13:53:39 +11:00
Juan Leyva
658d96f889
MDL-80332 login: New hooks for complete login and passed MFA
2024-03-25 15:48:39 +01:00
Mark Johnson
788556f652
MDL-80099 hooks: Add mechanism to deprecate class callbacks
2024-03-20 14:58:16 +00:00
Jake Dallimore
93aa177f11
Merge branch 'MDL-81180-main' of https://github.com/andrewnicols/moodle
2024-03-15 10:27:51 +08:00
Paul Holden
f4843f268c
MDL-81047 hook: fix typo in constructor docblock.
2024-03-11 12:31:45 +00:00
Andrew Nicols
bbc98c82c0
MDL-81180 core: Add support for array notation in hook callback
2024-03-11 16:49:54 +08:00
Andrew Nicols
017e52f213
MDL-81047 core: Standardise init of before_standard_head_html_generation
2024-03-08 23:56:40 +08:00
Andrew Nicols
0a30867cdf
MDL-81047 core: Rename standard_head_html_prepend hook
...
This commit updates the name of the standard_head_html_prepend hook to
meet coding style agreed in MDL-79077.
2024-03-08 23:56:39 +08:00
Sara Arjona
6f81ace5a8
Merge branch 'MDL-81011-main' of https://github.com/andrewnicols/moodle
2024-03-07 12:20:01 +01:00
Andrew Nicols
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
Andrew Nicols
5109761162
MDL-81044 backup: Rename excluded events hook to meet style
2024-02-27 11:40:55 +08:00
Andrew Nicols
9ed3f83dd2
MDL-80072 core: Add \core\di wrapper to php-di
...
The \core\di class is a Moodle wrapper to php-di which is intended to
allow Moodle to switch to an alternate DI solution in the future if
required. All interaction with the container uses the PSR-11 Container
interfaces, which allows for normalisation of configuration, setting,
and retrieving of DI container-identified classes.
2024-02-12 11:11:16 +08:00
Marina Glancy
e9abb3a5de
MDL-79076 output: convert callback before_standard_html_head
2024-01-15 15:33:42 +00:00
Tomo Tsuyuki
f4597c9096
MDL-73926 backup: Add hook to exclude events for triggering backup
2023-12-14 10:01:47 +11:00
Petr Skoda
b2a2d3dc66
MDL-79338 core: add support for hook callback redirection in tests
2023-09-14 11:47:52 +02:00
Petr Skoda
f42cc76a78
MDL-79336 core: add core\hook\stoppable_trait
2023-09-14 11:33:01 +02:00
Marina Glancy
77d3c5b1b0
MDL-79088 navigation: add stoppable interface to navigation extend hook
2023-09-04 13:36:40 +01:00
Marina Glancy
906dfc2f50
MDL-79088 navigation: new hook to add items to site primary navigation
2023-09-04 13:36:40 +01:00
Marina Glancy
4d5c4b471d
MDL-79144 hooks: allow hooks to return tags
2023-08-25 13:53:09 +01:00
Petr Skoda
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
Petr Skoda
0dcb5c4281
MDL-78332 core: remove unnecessary hooks reset method
2023-05-24 14:35:59 +02:00
Andrew Nicols
67ba0d3e83
MDL-74954 core: Detect changes to hook overrides
2023-05-23 16:03:37 +08:00
Andrew Nicols
07a1dc04f8
MDL-74954 core: Add hook discovery feature
2023-05-20 11:03:46 +02:00
Petr Skoda
99a7a7c782
MDL-74954 core: add Hooks based on PSR-14
2023-05-20 11:03:46 +02:00