protected function configureAndRegisterClient(): void
    {
        $this->app->singleton(static::$abstract, function () {
            $basePath = base_path();
            $userConfig = $this->app['config'][static::$abstract];

            // We do not want this setting to hit our main client because it's Laravel specific
            unset(
                $userConfig['breadcrumbs'],
                // this is kept for backwards compatibilty and can be dropped in a breaking release
                $userConfig['breadcrumbs.sql_bindings']
            );

            $options = \array_merge(
                [
                    'environment' => $this->app->environment(),
                    'prefixes' => [$basePath],
                    'project_root' => $basePath,
                    'in_app_exclude' => [$basePath . '/vendor'],
                    'integrations' => [new Integration],
                ],
                $userConfig
            );

            $clientBuilder = ClientBuilder::create($options);
            $clientBuilder->setSdkIdentifier(Version::SDK_IDENTIFIER);
            $clientBuilder->setSdkVersion(Version::SDK_VERSION);

            Hub::setCurrent(new Hub($clientBuilder->getClient()));

            return Hub::getCurrent();
        });
    }
protected function configureAndRegisterClient(): void
    {
        $this->app->singleton(static::$abstract, function () {
            $basePath = base_path();
            $userConfig = $this->app['config'][static::$abstract];

            // We do not want this setting to hit our main client because it's Laravel specific
            unset(
                $userConfig['breadcrumbs'],
                // this is kept for backwards compatibilty and can be dropped in a breaking release
                $userConfig['breadcrumbs.sql_bindings']
            );

            $options = \array_merge(
                [
                    'environment' => $this->app->environment(),
                    'prefixes' => [$basePath],
                    'project_root' => $basePath,
                    'in_app_exclude' => [$basePath . '/vendor'],
                    'integrations' => [new Integration],
                ],
                $userConfig
            );

            $clientBuilder = ClientBuilder::create($options);
            $clientBuilder->setSdkIdentifier(Version::SDK_IDENTIFIER);
            $clientBuilder->setSdkVersion(Version::SDK_VERSION);

            Hub::setCurrent(new Hub($clientBuilder->getClient()));

            return Hub::getCurrent();
        });
    }
protected function configureAndRegisterClient ( ) : void { $ this -> app -> singleton ( static :: $ abstract , function ( ) { $ basePath = base_path ( ) ; $ userConfig = $ this -> app [ 'config' ] [ static :: $ abstract ] ; // We do not want this setting to hit our main client because it's Laravel specific unset ( $ userConfig [ 'breadcrumbs' ] , // this is kept for backwards compatibilty and can be dropped in a breaking release $ userConfig [ 'breadcrumbs.sql_bindings' ] ) ; $ options = \ array_merge ( [ 'environment' => $ this -> app -> environment ( ) , 'prefixes' => [ $ basePath ] , 'project_root' => $ basePath , 'in_app_exclude' => [ $ basePath . '/vendor' ] , 'integrations' => [ new Integration ] , ] , $ userConfig ) ; $ clientBuilder = ClientBuilder :: create ( $ options ) ; $ clientBuilder -> setSdkIdentifier ( Version :: SDK_IDENTIFIER ) ; $ clientBuilder -> setSdkVersion ( Version :: SDK_VERSION ) ; Hub :: setCurrent ( new Hub ( $ clientBuilder -> getClient ( ) ) ) ; return Hub :: getCurrent ( ) ; } ) ; }
Configure and register the Sentry client with the container.
Configure and register the Sentry client with the container .