mirror of
https://github.com/friendica/friendica
synced 2025-04-27 23:10:12 +00:00
Introduce Response
for Modules to create a testable way for module responses
This commit is contained in:
parent
ad5b0762b0
commit
561aba18e3
37 changed files with 309 additions and 113 deletions
|
@ -701,8 +701,8 @@ class App
|
|||
}
|
||||
|
||||
// Let the module run it's internal process (init, get, post, ...)
|
||||
$content = $module->run($_POST, $_REQUEST);
|
||||
$page->run($this, $this->baseURL, $this->args, $this->mode, $content, $this->l10n, $this->profiler, $this->config, $pconfig);
|
||||
$response = $module->run($_POST, $_REQUEST);
|
||||
$page->run($this, $this->baseURL, $this->args, $this->mode, $response, $this->l10n, $this->profiler, $this->config, $pconfig);
|
||||
} catch (HTTPException $e) {
|
||||
(new ModuleHTTPException())->rawContent($e);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue