reinfi/zf-request-listener

This package is abandoned and no longer maintained. No replacement package was suggested.

A laminas module for loading listeners only for http or console.

v5.0.0 2021-12-26 18:12 UTC

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