Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrii Afanasiev committed Apr 9, 2018
1 parent 9f0f019 commit 23186d5
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions Resources/doc/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,38 @@ Here you can description of some important configuration options for RollBar.

``root``: Path to your project's root dir. Default ``%kernel.root_dir%``

``checkIgnore``: Function called before sending payload to Rollbar, return true to stop the error from being sent to Rollbar.

Use globally defined function:

.. code-block:: yaml
symfony_rollbar:
# ...
rollbar:
# ...
checkIgnore: 'function_name_here'
Use custom ``CheckIgnoreProvider`` class that should implements ``InterfaceCheckIgnore``:

.. code-block:: yaml
symfony_rollbar:
# ...
rollbar:
# ...
checkIgnore: '\SymfonyRollbarBundle\Tests\Fixtures\CheckIgnoreProvider'
Use custom ``CheckIgnoreProvider`` service that class should implements ``InterfaceCheckIgnore``:

.. code-block:: yaml
symfony_rollbar:
# ...
rollbar:
# ...
checkIgnore: 'awesome_app.rollbar_check_ignore_provider'
RollBar - Person Tracking
-------------------------
Expand Down

0 comments on commit 23186d5

Please sign in to comment.