Skip to content

Instantly share code, notes, and snippets.

version: '3'
services:
nginx:
image: nginx
volumes:
- project-one-volume:/var/www/project-one
php:
image: php:7.2-fpm
volumes:
<?php
namespace Your\Module\Namespace\Listener;
use MySQLReplication\BinLog\BinLogSocketConnect;
use MySQLReplication\Config\ConfigBuilder;
use MySQLReplication\Event\DTO\UpdateRowsDTO;
use MySQLReplication\Event\EventSubscribers;
use MySQLReplication\MySQLReplicationFactory;
<?php
// this file exists only for CI/CD (For those who have to deal with devs or admin users who love to create/delete sites on preprod envs)
// it is not used by the application and can be safely removed after compilation
$originalConfig = include 'config-orig.php';
$scopeConfig = [
'scopes' => [
'websites' => [
'admin' => [
'website_id' => '0',
'code' => 'admin',