Skip to content

Commit

Permalink
Update install information (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean85 authored and mitsuhiko committed Nov 28, 2017
1 parent e4aa264 commit 3947a83
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,18 @@ class AppKernel extends Kernel
{
$bundles = array(
// ...

new Sentry\SentryBundle\SentryBundle(),
);

if (in_array($this->getEnvironment(), ['staging', 'prod'], true)) {
$bundles[] = new Sentry\SentryBundle\SentryBundle();
}
// ...
}

// ...
}
```
Note that, with this snippet of code, the bundle will be enabled only for the `staging` and `prod` environment; adjust it to your neeeds. It's discouraged to enable this bundle in the `test` environment, because the Sentry client will change the error handler, which is already used by other packages like Symfony's deprecation handler (see [#46](https://github.com/getsentry/sentry-symfony/issues/46) and [#95](https://github.com/getsentry/sentry-symfony/issues/95)).

### Step 3: Configure the SDK

Expand Down

0 comments on commit 3947a83

Please sign in to comment.