Skip to content

Commit ca1a14e

Browse files
committed
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.
1 parent 125d0c0 commit ca1a14e

4 files changed

Lines changed: 10 additions & 8 deletions

File tree

.github/workflows/build.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,6 @@ jobs:
7777
name: Output PHP version for Symfony CLI
7878
run: php -v | head -n 1 | awk '{ print $2 }' > .php-version
7979

80-
-
81-
name: Install certificates
82-
run: symfony server:ca:install
83-
8480
-
8581
name: Run Chrome Headless
8682
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 &

behat.yml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ default:
1313

1414
Behat\MinkExtension:
1515
files_path: "%paths.base%/vendor/sylius/sylius/src/Sylius/Behat/Resources/fixtures/"
16-
base_url: "https://127.0.0.1:8080/"
16+
base_url: "http://127.0.0.1:8080/"
1717
default_session: symfony
1818
javascript_session: chrome
1919
sessions:

doc/installation.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,15 @@
1111
USER_COM_COOKIE_DOMAIN=""
1212
MESSENGER_USER_COM_ASYNCHRONOUS_DSN=""
1313
```
14-
- You can find the `USER_COM_FRONTEND_API_KEY` in the User.Com integration guide for `Google Tag Manager (Settings->Setup & Integrations)`.
15-
- `USER_COM_COOKIE_DOMAIN` is optional, if not set, cookies will be set for the current domain.
14+
- You can find the `USER_COM_FRONTEND_API_KEY` in the User.Com integration guide for `Google Tag Manager (Settings->Setup & Integrations)`.
15+
- `USER_COM_ENCRYPTION_KEY` and `USER_COM_ENCRYPTION_IV` are required for cookie encryption.
16+
- You can generate the encryption key and IV using the following command:
17+
```bash
18+
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";'
19+
```
20+
- `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.
21+
22+
- `USER_COM_COOKIE_DOMAIN` is optional, if not set, cookies will be set for the current domain.
1623

1724

1825
3. Add plugin dependencies to `config/bundles.php` file. Make sure that none of the bundles are duplicated.

ecs.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,3 @@
1818
VisibilityRequiredFixer::class => ['*Spec.php'],
1919
]);
2020
};
21-

0 commit comments

Comments
 (0)