Symfony

Symfony is supported via the sentry-symfony package as a native bundle.

Symfony 2+

Install the sentry/sentry-symfony package:

$ composer require sentry/sentry-symfony

Enable the bundle in app/AppKernel.php:

<?php
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...

            new Sentry\SentryBundle\SentryBundle(),
        );

        // ...
    }

    // ...
}

Add your DSN to app/config/config.yml:

sentry:
    dsn: "___DSN___"