Skip to content

Commit af5e1e5

Browse files
committed
update docs
1 parent b682a0f commit af5e1e5

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

Resources/doc/configuration.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@ Configuration
22
=============
33

44
Simple configuration of bundle:
5+
56
.. code-block:: yaml
6-
symfony_rollbar:
7-
rollbar:
8-
access_token: 'some-secret-token-here'
9-
environment: '%kernel.environment%'
107
8+
symfony_rollbar:
9+
rollbar:
10+
access_token: 'some-secret-token-here'
11+
environment: '%kernel.environment%'
1112
1213
Bundle configuration
1314
--------------------

Resources/doc/index.rst

Lines changed: 9 additions & 6 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
@@ -24,7 +24,8 @@ Step 2: Enable the Bundle
2424
Then, enable the bundle by adding it to the list of registered bundles
2525
in the ``AppKernel::registerBundles()`` of your project:
2626

27-
.. note::
27+
.. code-block:: php
28+
2829
public function registerBundles()
2930
{
3031
$bundles = [
@@ -39,12 +40,14 @@ in the ``AppKernel::registerBundles()`` of your project:
3940
Step 3: Update configuration
4041
----------------------------
4142
Add new section in configuration file
43+
4244
.. code-block:: yaml
45+
4346
symfony_rollbar:
44-
enable: true
45-
rollbar:
46-
access_token: '%ROLLBAR_ACCESS_TOKEN%'
47-
environment: '%kernel.environment%'
47+
enable: true
48+
rollbar:
49+
access_token: '%ROLLBAR_ACCESS_TOKEN%'
50+
environment: '%kernel.environment%'
4851
4952
Replace ``%ROLLBAR_ACCESS_TOKEN%`` with token for Rollbar
5053

0 commit comments

Comments
 (0)