Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 862 Bytes

custom_data_method.rst

File metadata and controls

36 lines (26 loc) · 862 Bytes

Configuration: Custom Data Method

Allows creating dynamic custom data on runtime during error reporting.

Examples

Use globally defined function:

symfony_rollbar:
    # ...
    rollbar:
        # ...
        custom_data_method: 'custom_data_funcion'

Use custom CustomDataProvider class that should implements InterfaceCustomData:

symfony_rollbar:
    # ...
    rollbar:
        # ...
        custom_data_method: '\SymfonyRollbarBundle\Tests\Fixtures\CustomDataProvider'

Use custom CustomDataProvider service that class should implements InterfaceCustomData:

symfony_rollbar:
    # ...
    rollbar:
        # ...
        custom_data_method: 'awesome_app.rollbar_custom_data_method'