Skip to content

Commit c41ab4a

Browse files
committed
Move phpdotenv to require-dev. drupal-composer#379
1 parent 7b0f5c5 commit c41ab4a

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

Diff for: composer.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@
2222
"drupal/console": "^1.0.2",
2323
"drupal/core": "~8.5.1",
2424
"drush/drush": "^9.0.0",
25-
"vlucas/phpdotenv": "^2.4",
2625
"webflo/drupal-finder": "^1.0.0",
2726
"webmozart/path-util": "^2.3"
2827
},
2928
"require-dev": {
30-
"webflo/drupal-core-require-dev": "~8.5.1"
29+
"webflo/drupal-core-require-dev": "~8.5.1",
30+
"vlucas/phpdotenv": "^2.4"
3131
},
3232
"conflict": {
3333
"drupal/drupal": "*"
@@ -41,6 +41,8 @@
4141
"classmap": [
4242
"scripts/composer/ScriptHandler.php"
4343
],
44+
},
45+
"autoload-dev": {
4446
"files": ["load.environment.php"]
4547
},
4648
"scripts": {

Diff for: load.environment.php

+9
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@
33
/**
44
* This file is included very early. See autoload.files in composer.json and
55
* https://getcomposer.org/doc/04-schema.md#files
6+
*
7+
* If you would like to remove phpdotenv from the project, run the following:
8+
*
9+
* 1. Run 'composer remove --dev vlucas/phpdotenv'
10+
* 2. Remove this file and .env.example: 'rm load.environment.php .env.example'
11+
* 3. Remove "files": ["load.environment.php"] from composer.json
12+
* 4. Run 'composer dump-autoload' to regenerate the autoloader.
13+
* 5. Run 'composer update --lock' to update the lock hash, since composer.json
14+
* was manually edited.
615
*/
716

817
use Dotenv\Dotenv;

0 commit comments

Comments
 (0)