Open Bug 1290995 Opened 4 years ago Updated 4 years ago

Add early hook for PSGI manipulations

Categories

(Bugzilla :: Bugzilla-General, enhancement, P3)

5.1.1
enhancement

Tracking

()

Bugzilla 6.0

People

(Reporter: dylan, Unassigned)

Details

It would be nice for extensions to be able to add paths to the $static_paths in app.psgi.

Around https://github.com/bugzilla/bugzilla/blob/master/app.psgi#L41,
we should call:

Bugzilla::Hook::process('psgi_setup') and pass in the list of static paths
as an array reference so that the new psgi_setup hook can modify it.
It should be possible to run other plack middleware from this hook too, which may prove very useful.
Severity: normal → enhancement
You need to log in before you can comment on or make changes to this bug.