Feature
abstract class Feature
| internal |
Methods
Indicate if the feature is applicable to the current environment.
Register the feature in the environment.
Set up the feature in the environment.
Set up the feature in the environment in an inactive state (when no DSN was set).
Initialize the feature.
Initialize the feature in an inactive state (when no DSN was set).
Retrieve the user configuration.
Determine if default PII should be sent.
Indicate if the given feature is enabled for tracing.
Indicate if the given feature is enabled for breadcrumbs.
Details
at line 33
__construct(Container $container)
Create a new feature instance.
at line 41
abstract bool
isApplicable()
Indicate if the feature is applicable to the current environment.
at line 46
void
register()
Register the feature in the environment.
at line 54
void
onBoot()
Set up the feature in the environment.
at line 62
void
onBootInactive()
Set up the feature in the environment in an inactive state (when no DSN was set).
at line 69
void
boot()
Initialize the feature.
at line 83
void
bootInactive()
Initialize the feature in an inactive state (when no DSN was set).
at line 97
protected array
getUserConfig()
Retrieve the user configuration.
at line 105
protected bool
shouldSendDefaultPii()
Determine if default PII should be sent.
at line 119
protected bool
isTracingFeatureEnabled(string $feature, bool $default = true)
Indicate if the given feature is enabled for tracing.
at line 131
protected bool
isBreadcrumbFeatureEnabled(string $feature, bool $default = true)
Indicate if the given feature is enabled for breadcrumbs.