forked from GNUsocial/gnu-social
[MODULES] Add InitiializeModule and CleanupModule events, similar to v2
This commit is contained in:
parent
1ee8df1494
commit
bda839be7b
@ -125,6 +125,8 @@ class Controller extends AbstractController implements EventSubscriberInterface
|
|||||||
throw new ClientException(_m('Unsupported format: {format}', ['format' => $format]), 406); // 406 Not Acceptable
|
throw new ClientException(_m('Unsupported format: {format}', ['format' => $format]), 406); // 406 Not Acceptable
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Event::handle('CleanupModule');
|
||||||
|
|
||||||
return $event;
|
return $event;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -149,6 +151,9 @@ class Controller extends AbstractController implements EventSubscriberInterface
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} while ($except != null && ($except = $except->getPrevious()) != null);
|
} while ($except != null && ($except = $except->getPrevious()) != null);
|
||||||
|
|
||||||
|
Event::handle('CleanupModule');
|
||||||
|
|
||||||
return $event;
|
return $event;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -204,6 +204,7 @@ class GNUsocial implements EventSubscriberInterface
|
|||||||
}
|
}
|
||||||
|
|
||||||
$this->initialize();
|
$this->initialize();
|
||||||
|
Event::handle('InitializeModule');
|
||||||
return $event;
|
return $event;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user