https://github.com/reinfi/zf-request-listener
Add listeners either for http requests or console requests.
https://github.com/reinfi/zf-request-listener
console http listener zend-framework
Last synced: 2 months ago
JSON representation
Add listeners either for http requests or console requests.
- Host: GitHub
- URL: https://github.com/reinfi/zf-request-listener
- Owner: reinfi
- License: mit
- Created: 2017-08-05T14:52:57.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-12-26T18:16:34.000Z (over 3 years ago)
- Last Synced: 2025-01-12T07:35:49.554Z (4 months ago)
- Topics: console, http, listener, zend-framework
- Language: PHP
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Reinfi\RequestListener
==============### 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:
```bash
$ composer require reinfi/zf-request-listener
```Add the `Reinfi\RequestListener` to your list of modules in the config/application.config.php `modules` array:
```php
// 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