2017 © Pedro Peláez
 

library zf-config-listener

image

snapshotpl/zf-config-listener

  • Monday, May 14, 2018
  • by snapshotpl
  • Repository
  • 1 Watchers
  • 0 Stars
  • 5,679 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 7 Versions
  • 3 % Grown

The README.md

ZfConfigListener Build Status

Attach any Laminas Event Manager listener using configuration, (*1)

Usage

If you want to attach my-listener and module-listener to my-service service with event manager, you need to configure listener:, (*2)

<?php

return [
    'service_manager' => [
        'factories' => [
            'my-service' => MyServiceFactory::class,
            'my-listener' => MyListenerFactory::class,
            'module-listener' => ModuleListenerFactory::class,
        ],
    ],
    'listeners_config' => [
        'my-service' => [
            'my-listener',
            'module-listener',
        ],
    ],
];

Installation

composer require snapshotpl/zf-config-listener

add add ZfConfigListener module to application's configuration., (*3)

The Versions