PHP code example of settermjd / mezzio-eventmanager-integration
1. Go to this page and download the library: Download settermjd/mezzio-eventmanager-integration 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/ */
settermjd / mezzio-eventmanager-integration example snippets
return [
'listeners' => [
'add-item' => [
[
'listener' => FakeLoggerListener::class,
'priority' => 10,
],
[
'listener' => FakeNotificationListener::class,
'priority' => 20,
]
],
'update-item' => [
[
'listener' => FakeLoggerListener::class,
]
],
'delete-item' => [
[
'listener' => FakeNotificationListener::class,
'priority' => 10,
],
],
],
];