Skip to content

Commit

Permalink
Merge pull request #946 from fabian-mcfly/patch-1
Browse files Browse the repository at this point in the history
Added the info that the forceEnable config value accepts a callable
  • Loading branch information
LordSimal authored Jul 22, 2023
2 parents 663491e + 39affa8 commit dda757e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/en/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ Configuration
// Before loading DebugKit
Configure::write('DebugKit.forceEnable', true);

You can also provide a callable::

Configure::write('DebugKit.forceEnable', function() {
return $_SERVER['REMOTE_ADDR'] === '192.168.2.182';
});

* ``DebugKit.ignorePathsPattern`` - Regex pattern (including delimiter) to ignore paths.
DebugKit won't save data for request URLs that match this regex. Defaults to ``null``::

Expand Down

0 comments on commit dda757e

Please sign in to comment.