Download the PHP package contenir/maintenance-laminas-mvc without Composer
On this page you can find all versions of the php package contenir/maintenance-laminas-mvc. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download contenir/maintenance-laminas-mvc
More information about contenir/maintenance-laminas-mvc
Files in contenir/maintenance-laminas-mvc
Package maintenance-laminas-mvc
Short Description Laminas MVC adapter for contenir/contenir-maintenance — short-circuits dispatch with 503 when maintenance mode is active.
License MIT
Informations about the package maintenance-laminas-mvc
contenir/maintenance-laminas-mvc
Laminas MVC adapter for contenir/maintenance.
When the admin (Contenir CMS) toggles maintenance mode, this adapter short-circuits dispatch in the consuming Site with a 503 response — until the flag is cleared.
Install
Wire-up
1. Register the module
If you have laminas/laminas-component-installer installed, this happens
automatically.
2. Point at the shared state file
That's the minimum. With nothing else set, the adapter will return a plain 503 page with the configured message whenever maintenance is active.
3. (Optional) Bypass for operators
4. (Optional) Customise the response body
body_template is a sprintf format string with a single %s for the
escaped message text. If you need anything more elaborate (full layout,
view helpers, translation), replace the MaintenanceListener service
with your own factory.
Listener priority
The listener attaches at MvcEvent::EVENT_DISPATCH priority 10000 so
it runs before route → controller dispatch and before any other listener
that hasn't asked for higher priority. The exact value is exposed as
Module::DISPATCH_PRIORITY if you need to coordinate with another
listener.
All versions of maintenance-laminas-mvc with dependencies
contenir/contenir-maintenance Version ^2.1
laminas/laminas-eventmanager Version ^3.13
laminas/laminas-http Version ^2.19
laminas/laminas-mvc Version ^3.7
laminas/laminas-servicemanager Version ^3.22 || ^4.0
psr/container Version ^1.1 || ^2.0