reinfi / zf-request-listener
A laminas module for loading listeners only for http or console.
Installs: 11 220
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 1
Requires
- php: >=7.4 | >= 8.0
- laminas/laminas-eventmanager: ~2.6 | ~3.2
- laminas/laminas-modulemanager: ~2.7
Requires (Dev)
- laminas/laminas-console: ^2.8
- laminas/laminas-http: ^2.15
- phpunit/phpunit: ^9.5
Suggests
- laminas/laminas-http: If you want to enable http request listener
This package is auto-updated.
Last update: 2021-12-26 18:16:57 UTC
README
Deprecated
This module is deprecated as laminas/laminas-mvc-console and laminas-console is deprecated. Using laminas-cli does not trigger any listeners.
Move your http_listener
to listeners
in your configuration.
Description
This module can add listeners only for HTTP or Console Requests.
Installation
Module can be easily installed with composer. Just ask a composer to download the bundle with dependencies by running the command:
$ composer require reinfi/zf-request-listener
Add the Reinfi\RequestListener
to your list of modules in the config/application.config.php modules
array:
// config/application.config.php // This should be an array of module namespaces used in the application. 'modules' => array( 'Reinfi\RequestListener', 'Application', ),
Configuration
Instead of adding every listener to listeners
you can add the following:
[
'cli_listeners' => [
NameSpace\YourClass::class,
],
'http_listeners' => [
NameSpace\YourClass::class,
],
]
License
This module is under the MIT license. See the complete LICENSE in the root directory