You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> I know, you love DI Container to build services like this. But Container Loader need to know Debug Mode state before is
50
-
> DI Container ready, you cannot use DI for Debug Mode detecting.
50
+
> DI Container ready, you cannot use DI for Debug Mode detecting.
51
51
52
52
## Using with Docker
53
-
If you building custom Docker image for your devstack, add the environment variable `APP_DEBUG=1`. For example in `Dockerfile` file:
53
+
If you are building custom Docker image for your devstack, add the environment variable `APP_DEBUG=1`. For example in `Dockerfile` file:
54
54
```
55
55
ENV APP_DEBUG 1
56
56
```
@@ -64,11 +64,10 @@ environment:
64
64
```
65
65
66
66
## Manually switch
67
-
**WARNING – DANGER ZONE:** Following feature allows to force Debug Mode on any environment, production including.
68
-
Please use it with great caution only! Wrong use might cause to critical security issue! Before using Enabler's feature be
69
-
aware your app is resistant to XSS, CSRF and similar attacks!
67
+
**WARNING – DANGER ZONE:** Following feature allows you to force Debug Mode on any environment, including *production*.
68
+
Please use it with great caution only! Wrong use might cause critical security issue! Before using Enabler's feature, make sure your app is resistant to XSS, CSRF and similar attacks!
70
69
71
-
Enabler provide feature to force enable or disable Debug Mode anywhere for user's browser (drived by Cookie).
70
+
Enabler provide feature to force enable or disable Debug Mode anywhere for user's browser (drived by Cookie).
72
71
73
72
This example turn on Debug Mode for user's browser:
74
73
```php
@@ -88,10 +87,10 @@ services:
88
87
- Redbitcz\DebugMode\Enabler(%tempDir%)
89
88
```
90
89
91
-
At most cases this example is creates second instance of `Enabler` class because first one is already created
90
+
At most cases this example creates second instance of `Enabler` class because first one is already created
92
91
internally with `Detector` instance in `Bootstrap`.
93
92
94
-
To re-use already exists instance you can inject it to DI Container:
93
+
To re-use already existing instance you can inject it to DI Container:
95
94
```php
96
95
$tempDir = __DIR__ . '/../temp';
97
96
$debugModeDetector = new \Redbitcz\DebugMode\Detector($tempDir);
0 commit comments