@@ -17,7 +17,7 @@ This also standardizes some environment terminology between hosting providers so
17
17
### Getting an environment variable
18
18
19
19
``` php
20
- use Davereid\ DrupalEnvironment\Environment;
20
+ use DrupalEnvironment\Environment;
21
21
$value = Environment::get('VARIABLE_NAME');
22
22
```
23
23
@@ -26,7 +26,7 @@ The advantages of using this is the results are statically cached.
26
26
### Testing for Drupal hosting or CI environments
27
27
28
28
``` php
29
- use Davereid\ DrupalEnvironment\Environment;
29
+ use DrupalEnvironment\Environment;
30
30
31
31
// These all return a boolean true/false
32
32
Environment::isPantheon();
@@ -40,7 +40,7 @@ Environment::isCircleCi();
40
40
### Testing for specific environments
41
41
42
42
``` php
43
- use Davereid\ DrupalEnvironment\Environment;
43
+ use DrupalEnvironment\Environment;
44
44
45
45
// This gets the specific environment string.
46
46
$environment = Environment::getEnvironment();
@@ -58,7 +58,7 @@ Environment::isLando();
58
58
### Testing for executable commands
59
59
60
60
``` php
61
- use Davereid\ DrupalEnvironment\Environment;
61
+ use DrupalEnvironment\Environment;
62
62
63
63
// This returns a boolean true/false:
64
64
Environment::commandExists('composer');
@@ -69,7 +69,7 @@ Environment::commandExists('composer');
69
69
### settings.php
70
70
71
71
``` php
72
- use Davereid\ DrupalEnvironment\Environment;
72
+ use DrupalEnvironment\Environment;
73
73
74
74
if (Environment::isProduction()) {
75
75
// Set some production environment settings overrides.
0 commit comments