Skip to content

Commit 3051e79

Browse files
committed
Merge branch 'develop'
2 parents 1ae4b80 + 4f50b8f commit 3051e79

File tree

3 files changed

+67
-27
lines changed

3 files changed

+67
-27
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE)
55

66
Bundle for Symfony3 that integrates Rollbar tracker
7-
Docs [here](https://github.com/OxCom/symfony3-rollbar-bundle/tree/master/Resources/doc)
7+
8+
Some documentation can be found here [here](https://github.com/OxCom/symfony3-rollbar-bundle/tree/master/Resources/doc)
89

910
# Tests
1011
To run test You have to provide an access token and then run test

Resources/doc/configuration.rst

Lines changed: 53 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,65 @@
11
Configuration
2-
=======================
2+
=============
3+
34
Simple configuration of bundle:
4-
.. code-block:: php
5-
symfony_rollbar:
6-
rollbar:
7-
access_token: 'some-secret-token-here'
8-
environment: '%kernel.environment%'
95

6+
.. code-block:: yaml
7+
8+
symfony_rollbar:
9+
enable: true
10+
rollbar:
11+
access_token: 'some-secret-token-here'
12+
environment: '%kernel.environment%'
13+
agent_log_location: '%kernel.logs_dir%/rollbar.log'
14+
allow_exec: true
15+
endpoint: 'https://api.rollbar.com/api/1/'
16+
base_api_url: 'https://api.rollbar.com/api/1/'
17+
branch: 'master'
18+
capture_error_stacktraces: true
19+
checkIgnore: null
20+
code_version: ''
21+
enable_utf8_sanitization': true
22+
environment: 'production'
23+
custom: []
24+
error_sample_rates: []
25+
exception_sample_rates: []
26+
fluent_host: '127.0.0.1'
27+
fluent_port: 24224
28+
fluent_tag: 'rollbar'
29+
handler: 'blocking'
30+
host: null
31+
include_error_code_context: false
32+
include_exception_code_context: false
33+
included_errno: E_ERROR | E_WARNING | E_PARSE | E_CORE_ERROR | E_USER_ERROR | E_RECOVERABLE_ERROR
34+
logger: null
35+
person: []
36+
person_fn: null
37+
root: '%kernel.root_dir%'
38+
scrub_fields: ['passwd', 'password', 'secret', 'confirm_password', 'password_confirmation', 'auth_token', 'csrf_token']
39+
scrub_whitelist: null
40+
shift_function': true
41+
timeout: 3
42+
report_suppressed: false
43+
use_error_reporting: false
44+
proxy: null
45+
send_message_trace: false
46+
include_raw_request_body: false
47+
local_vars_dump: false
1048
1149
Bundle configuration
12-
---------------------------
13-
####
50+
--------------------
51+
1452
``enable``: It's possible to enable or disable handling of errors and exceptions. Default: ``true``
1553

16-
``rollbar`` - configuration parameters for Rollbar instance. Full list of options can be found
54+
``rollbar``: Configuration parameters for Rollbar instance. Full list of options can be found
1755
in `official documentation`_ for Rollbar PHP lib.
1856

19-
#### RollBar settings
20-
Here you can find a list of some configuration options for RollBar.
57+
.. _`official documentation`: https://rollbar.com/docs/notifier/rollbar-php/
58+
59+
RollBar settings
60+
--------------------
61+
62+
Here you can description of some important configuration options for RollBar.
2163

2264
``access_token``: Your project access token.
2365

@@ -26,8 +68,3 @@ Here you can find a list of some configuration options for RollBar.
2668
``environment``: Environment name, e.g. 'production' or 'development'. Default: ``production``
2769

2870
``root``: Path to your project's root dir. Default ``%kernel.root_dir%``
29-
30-
More configuration details can be found in `DependencyInjection/Configuration.php`_ file.
31-
32-
.. _`official documentation`: https://rollbar.com/docs/notifier/rollbar-php/
33-
.. _`DependencyInjection/Configuration.php`: https://github.com/OxCom/symfony3-rollbar-bundle/blob/master/DependencyInjection/Configuration.php

Resources/doc/index.rst

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Step 1: Download the Bundle
1212
Open a command console, enter your project directory and execute the
1313
following command to download the latest stable version of this bundle:
1414

15-
.. code-block:: bash
15+
.. code-block:: yaml
1616
1717
$ composer require oxcom/symfony-rollbar-bundle
1818
@@ -25,9 +25,7 @@ Then, enable the bundle by adding it to the list of registered bundles
2525
in the ``AppKernel::registerBundles()`` of your project:
2626

2727
.. code-block:: php
28-
<?php
2928
30-
// ..
3129
public function registerBundles()
3230
{
3331
$bundles = [
@@ -40,13 +38,17 @@ in the ``AppKernel::registerBundles()`` of your project:
4038
}
4139
4240
Step 3: Update configuration
43-
---------------------------
44-
3. Update configuration
45-
.. code-block:: yml
41+
----------------------------
42+
Add new section in configuration file
43+
44+
.. code-block:: yaml
45+
4646
symfony_rollbar:
47-
enable: true
48-
rollbar:
49-
access_token: '%ROLLBAR_ACCESS_TOKEN%'
50-
environment: '%kernel.environment%'
47+
enable: true
48+
rollbar:
49+
access_token: '%ROLLBAR_ACCESS_TOKEN%'
50+
environment: '%kernel.environment%'
51+
52+
Replace ``%ROLLBAR_ACCESS_TOKEN%`` with token for Rollbar
5153

5254
.. _`installation chapter`: https://getcomposer.org/doc/00-intro.md

0 commit comments

Comments
 (0)