diff options
| author | xXx-caillou-xXx | 2018-08-30 15:02:22 +0200 |
|---|---|---|
| committer | jvoisin | 2018-08-30 13:02:22 +0000 |
| commit | b3f67a16094168cc334f5da93a86f09476e01601 (patch) | |
| tree | de533b00c850ba1b64173a1d777f366a12f098df /doc/source/config.rst | |
| parent | f61a4772bfc33e08e7b06250e2f0f640bcae875f (diff) | |
Change how we're handling invalid configurations
Since our configuration format is a bit more complex than php's one,
we have a `sp.allow_broken_configuration` parameter (`false` by default),
that you can set to `true` if you want PHP to carry on if your Snuffleupagus'
configuration contains syntax errors. You'll still get a big scary message in
your logs of course. We do **not** recommend to use it of course, but sometimes
it might be useful to be able to "debug in production" without breaking your
website.
Diffstat (limited to 'doc/source/config.rst')
| -rw-r--r-- | doc/source/config.rst | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/source/config.rst b/doc/source/config.rst index e209ecb..8fd9097 100644 --- a/doc/source/config.rst +++ b/doc/source/config.rst | |||
| @@ -50,6 +50,14 @@ To sum up, you should put this in your ``php.ini``: | |||
| 50 | 50 | ||
| 51 | And the **snuffleupagus rules** into the ``.rules`` files. | 51 | And the **snuffleupagus rules** into the ``.rules`` files. |
| 52 | 52 | ||
| 53 | Since our configuration format is a bit more complex than php's one, | ||
| 54 | we have a ``sp.allow_broken_configuration`` parameter (``false`` by default), | ||
| 55 | that you can set to ``true`` if you want PHP to carry on if your Snuffleupagus' | ||
| 56 | configuration contains syntax errors. You'll still get a big scary message in | ||
| 57 | your logs of course. We do **not** recommend to use it of course, but sometimes | ||
| 58 | it might be useful to be able to "debug in production" without breaking your | ||
| 59 | website. | ||
| 60 | |||
| 53 | Miscellaneous | 61 | Miscellaneous |
| 54 | ------------- | 62 | ------------- |
| 55 | 63 | ||
| @@ -70,6 +78,7 @@ This configuration variable contains parameters that are used by multiple featur | |||
| 70 | - ``cookie_env_var``: A environment variable used as part of cookies encryption. | 78 | - ``cookie_env_var``: A environment variable used as part of cookies encryption. |
| 71 | See the :ref:`relevant documentation <config_cookie-encryption>` | 79 | See the :ref:`relevant documentation <config_cookie-encryption>` |
| 72 | 80 | ||
| 81 | |||
| 73 | Bugclass-killer features | 82 | Bugclass-killer features |
| 74 | ------------------------ | 83 | ------------------------ |
| 75 | 84 | ||
