From 6720d898f865de96cd319cc7a5ddd18e12647d31 Mon Sep 17 00:00:00 2001 From: indykoning <15870933+indykoning@users.noreply.github.com> Date: Mon, 29 Apr 2024 23:29:00 +0200 Subject: [PATCH] Add magento docs --- docs/config/sentry.md | 26 ++++++++++++++++++++++++++ docs/config/smtp.md | 16 ++++++++++++++++ 2 files changed, 42 insertions(+) diff --git a/docs/config/sentry.md b/docs/config/sentry.md index 7c11442..778dc9f 100644 --- a/docs/config/sentry.md +++ b/docs/config/sentry.md @@ -46,6 +46,32 @@ All you need to do is set the `SENTRY_DSN` environment variable in your `.env` f SENTRY_DSN=http://sentry@127.0.0.1:8000/1 ``` +## Magento 2 + +### Installation + +Magento 2 is supported via the following package, you can read more about it [here](https://github.com/justbetter/magento2-sentry) + +### Configuration + +Refer to the [Configuration section](https://github.com/justbetter/magento2-sentry#configuration). + +Either set + +```dotenv +CONFIG__SENTRY__ENVIRONMENT__DSN=http://sentry@127.0.0.1:8000/1 +``` + +or + +```php +'sentry' => [ + 'dsn' => 'http://sentry@127.0.0.1:8000/1', + ... +] +``` +in the `app/etc/env.php` + ## Other platforms To report to Buggregator you’ll need to use a language-specific SDK. The Sentry team builds and maintains these for most diff --git a/docs/config/smtp.md b/docs/config/smtp.md index 3cb98c0..9557b15 100644 --- a/docs/config/smtp.md +++ b/docs/config/smtp.md @@ -22,4 +22,20 @@ MAILER_DSN=smtp://127.0.0.1:1025 MAIL_MAILER=smtp MAIL_HOST=127.0.0.1 MAIL_PORT=1025 +``` + +## Magento 2 + +```dotenv +CONFIG__DEFAULT__SYSTEM__SMTP__TRANSPORT="smtp" +CONFIG__DEFAULT__SYSTEM__SMTP__HOST="127.0.0.1" +CONFIG__DEFAULT__SYSTEM__SMTP__PORT="1025" +``` + +or + +```bash +bin/magento config:set system/smtp/transport smtp +bin/magento config:set system/smtp/host 127.0.0.1 +bin/magento config:set system/smtp/port 1025 ``` \ No newline at end of file