PHP code example of snapshotpl / zf-config-listener
1. Go to this page and download the library: Download snapshotpl/zf-config-listener library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
snapshotpl / zf-config-listener example snippets
return [
'service_manager' => [
'factories' => [
'my-service' => MyServiceFactory::class,
'my-listener' => MyListenerFactory::class,
'module-listener' => ModuleListenerFactory::class,
],
],
'listeners_config' => [
'my-service' => [
'my-listener',
'module-listener',
],
],
];