mirror of
https://github.com/friendica/friendica
synced 2025-04-27 02:30:10 +00:00
Implement home_init hook as Event
This commit is contained in:
parent
aabf9a8b01
commit
742cde89e6
5 changed files with 19 additions and 8 deletions
|
@ -35,6 +35,7 @@ final class HookEventBridge
|
|||
*/
|
||||
private static array $eventMapper = [
|
||||
Event::INIT => 'init_1',
|
||||
Event::HOME_INIT => 'home_init',
|
||||
ConfigLoadedEvent::CONFIG_LOADED => 'load_config',
|
||||
ArrayFilterEvent::APP_MENU => 'app_menu',
|
||||
ArrayFilterEvent::NAV_INFO => 'nav_info',
|
||||
|
@ -57,6 +58,7 @@ final class HookEventBridge
|
|||
{
|
||||
return [
|
||||
Event::INIT => 'onNamedEvent',
|
||||
Event::HOME_INIT => 'onNamedEvent',
|
||||
ConfigLoadedEvent::CONFIG_LOADED => 'onConfigLoadedEvent',
|
||||
ArrayFilterEvent::APP_MENU => 'onArrayFilterEvent',
|
||||
ArrayFilterEvent::NAV_INFO => 'onArrayFilterEvent',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue