protected function getSentry(Container $container): callable
    {
        return function ($c) {
            $config = $c['config']('suit.sentry');

            $client = new \Raven_Client($config['dsn'], $config['options'] ?? []);
            $client->install();
            if ($c->has('user')) {
                $client->user_context((array) $c->get('user'));
            }

            return $client;
        };
    }
protected function getSentry(Container $container): callable
    {
        return function ($c) {
            $config = $c['config']('suit.sentry');

            $client = new \Raven_Client($config['dsn'], $config['options'] ?? []);
            $client->install();
            if ($c->has('user')) {
                $client->user_context((array) $c->get('user'));
            }

            return $client;
        };
    }
protected function getSentry ( Container $ container ) : callable { return function ( $ c ) { $ config = $ c [ 'config' ] ( 'suit.sentry' ) ; $ client = new \ Raven_Client ( $ config [ 'dsn' ] , $ config [ 'options' ] ?? [ ] ) ; $ client -> install ( ) ; if ( $ c -> has ( 'user' ) ) { $ client -> user_context ( ( array ) $ c -> get ( 'user' ) ) ; } return $ client ; } ; }
Add Sentry integration.
Add Sentry integration .