Skip to content

Commit 7a09e90

Browse files
authored
Clarify Symfony flex limitations (#14836)
1 parent 9e26c72 commit 7a09e90

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

docs/platforms/php/guides/symfony/configuration/symfony-options.mdx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,7 @@ sentry:
8989
```
9090
9191
The DSN option is the only required option: it sets the Sentry DSN, and so reports all events to the related project. If it's
92-
left empty, it disables Sentry reporting. Because Sentry enables the bundle in all environments, it's recommended to
93-
disable it in the `test` and `dev` environments.
92+
left empty, it disables Sentry reporting.
9493
9594
All the possible configurations under the `options` key map directly to the correspondent options from the base SDK;
9695
you can read more about those in the [general configuration docs](../options/).

docs/platforms/php/guides/symfony/index.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ SENTRY_DSN="___PUBLIC_DSN___"
2929
###< sentry/sentry-symfony ###
3030
```
3131

32+
When using Symfony Flex, the Sentry bundle is configured to be enabled in the `prod` environment only by default. You can change this behaviour in your `config/packages/sentry.yaml` and `config/bundles.php` files.
33+
3234
<Alert level="warning">
3335
In order to receive stack trace arguments in your errors, make sure to set `zend.exception_ignore_args: Off` in your php.ini
3436
</Alert>

0 commit comments

Comments
 (0)