Configuring Symfony send_callback

I’m trying to setup the Sentry with my Symfony2 application. I want to be able to filter sensitive data such that it is not sent to Sentry. My understanding is that the only option available to me is to configure the send_callback and filter the data myself. Problem is, I can’t seem to figure out how to set up this configuration.

I’ve attempted to configure the bundle like so without luck.
`public function registerBundles()
{
$configuredSentryBundle = new Sentry\SentryBundle\SentryBundle();
$configuredSentryBundle->send_callback = function ($data) {
$data[‘modified_content’] = ‘this is new content’;

        return $data;
    };

    $bundles = array(


$configuredSentryBundle,

);`

Does anyone have a Symfony example of configuring the bundle?