From ca1a14efd7044160740a499b83f571db7802c9b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Kali=C5=84ski?= Date: Tue, 25 Nov 2025 13:57:00 +0100 Subject: [PATCH] Update build workflow and improve documentation for User.com integration - Remove unused certificate installation step from build workflow. - Extend `installation.md` with encryption key/IV generation details and transport DSN examples. - Adjust Behat configuration to use `http` instead of `https` base URL. --- .github/workflows/build.yml | 4 ---- behat.yml.dist | 2 +- doc/installation.md | 11 +++++++++-- ecs.php | 1 - 4 files changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3388797..4389dd3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -77,10 +77,6 @@ jobs: name: Output PHP version for Symfony CLI run: php -v | head -n 1 | awk '{ print $2 }' > .php-version - - - name: Install certificates - run: symfony server:ca:install - - name: Run Chrome Headless run: google-chrome-stable --enable-automation --disable-background-networking --no-default-browser-check --no-first-run --disable-popup-blocking --disable-default-apps --allow-insecure-localhost --disable-translate --disable-extensions --no-sandbox --enable-features=Metal --headless --remote-debugging-port=9222 --window-size=2880,1800 --proxy-server='direct://' --proxy-bypass-list='*' http://127.0.0.1 > /dev/null 2>&1 & diff --git a/behat.yml.dist b/behat.yml.dist index 257c190..e4c30c9 100644 --- a/behat.yml.dist +++ b/behat.yml.dist @@ -13,7 +13,7 @@ default: Behat\MinkExtension: files_path: "%paths.base%/vendor/sylius/sylius/src/Sylius/Behat/Resources/fixtures/" - base_url: "https://127.0.0.1:8080/" + base_url: "http://127.0.0.1:8080/" default_session: symfony javascript_session: chrome sessions: diff --git a/doc/installation.md b/doc/installation.md index e643607..d072079 100644 --- a/doc/installation.md +++ b/doc/installation.md @@ -11,8 +11,15 @@ USER_COM_COOKIE_DOMAIN="" MESSENGER_USER_COM_ASYNCHRONOUS_DSN="" ``` - - You can find the `USER_COM_FRONTEND_API_KEY` in the User.Com integration guide for `Google Tag Manager (Settings->Setup & Integrations)`. - - `USER_COM_COOKIE_DOMAIN` is optional, if not set, cookies will be set for the current domain. + - You can find the `USER_COM_FRONTEND_API_KEY` in the User.Com integration guide for `Google Tag Manager (Settings->Setup & Integrations)`. + - `USER_COM_ENCRYPTION_KEY` and `USER_COM_ENCRYPTION_IV` are required for cookie encryption. +- You can generate the encryption key and IV using the following command: + ```bash + php -r '$key = bin2hex(random_bytes(16)); echo "USER_COM_ENCRYPTION_KEY=\"" . $key . "\"\n"; $iv = bin2hex(random_bytes(8)); echo "USER_COM_ENCRYPTION_IV=\"" . $iv . "\"\n";' + ``` + - `MESSENGER_USER_COM_ASYNCHRONOUS_DSN` is the DSN for the messenger transport that will handle asynchronous messages. You can use different transports like `doctrine://default`, `amqp://guest:guest@localhost:5672/%2f/messages`, etc. + + - `USER_COM_COOKIE_DOMAIN` is optional, if not set, cookies will be set for the current domain. 3. Add plugin dependencies to `config/bundles.php` file. Make sure that none of the bundles are duplicated. diff --git a/ecs.php b/ecs.php index 3cf43de..fb0426f 100644 --- a/ecs.php +++ b/ecs.php @@ -18,4 +18,3 @@ VisibilityRequiredFixer::class => ['*Spec.php'], ]); }; -