PHP Class Bugsnag\BugsnagLaravel\BugsnagServiceProvider

Inheritance: extends Illuminate\Support\ServiceProvider
Datei anzeigen Open project: bugsnag/bugsnag-laravel

Public Methods

Method Description
boot ( ) : void Boot the service provider.
provides ( ) : array Get the services provided by the provider.
register ( ) : void Register the service provider.

Protected Methods

Method Description
formatQuery ( string $sql, array $bindings, float $time, string $connection ) : array Format the query as breadcrumb metadata.
getGuzzle ( array $config ) : GuzzleHttp\ClientInterface Get the guzzle client instance.
setupCallbacks ( Bugsnag\Client $client, Illuminate\Contracts\Container\Container $app, array $config ) : void Setup the callbacks.
setupConfig ( Illuminate\Contracts\Container\Container $app ) : void Setup the config.
setupEvents ( Illuminate\Contracts\Events\Dispatcher $events, array $config ) : void Setup the events.
setupPaths ( Bugsnag\Client $client, string $base, string $path, string | null $strip, string | null $project ) : void Setup the client paths.
setupQueue ( Illuminate\Queue\QueueManager $queue ) : void Setup the queue.

Method Details

boot() public method

Boot the service provider.
public boot ( ) : void
return void

formatQuery() protected method

Format the query as breadcrumb metadata.
protected formatQuery ( string $sql, array $bindings, float $time, string $connection ) : array
$sql string
$bindings array
$time float
$connection string
return array

getGuzzle() protected method

Get the guzzle client instance.
protected getGuzzle ( array $config ) : GuzzleHttp\ClientInterface
$config array
return GuzzleHttp\ClientInterface

provides() public method

Get the services provided by the provider.
public provides ( ) : array
return array

register() public method

Register the service provider.
public register ( ) : void
return void

setupCallbacks() protected method

Setup the callbacks.
protected setupCallbacks ( Bugsnag\Client $client, Illuminate\Contracts\Container\Container $app, array $config ) : void
$client Bugsnag\Client
$app Illuminate\Contracts\Container\Container
$config array
return void

setupConfig() protected method

Setup the config.
protected setupConfig ( Illuminate\Contracts\Container\Container $app ) : void
$app Illuminate\Contracts\Container\Container
return void

setupEvents() protected method

Setup the events.
protected setupEvents ( Illuminate\Contracts\Events\Dispatcher $events, array $config ) : void
$events Illuminate\Contracts\Events\Dispatcher
$config array
return void

setupPaths() protected method

Setup the client paths.
protected setupPaths ( Bugsnag\Client $client, string $base, string $path, string | null $strip, string | null $project ) : void
$client Bugsnag\Client
$base string
$path string
$strip string | null
$project string | null
return void

setupQueue() protected method

Setup the queue.
protected setupQueue ( Illuminate\Queue\QueueManager $queue ) : void
$queue Illuminate\Queue\QueueManager
return void