Skip to content

Commit

Permalink
Move phpdotenv to require-dev. drupal-composer#379
Browse files Browse the repository at this point in the history
  • Loading branch information
q0rban committed Apr 5, 2018
1 parent 7b0f5c5 commit c41ab4a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
6 changes: 4 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@
"drupal/console": "^1.0.2",
"drupal/core": "~8.5.1",
"drush/drush": "^9.0.0",
"vlucas/phpdotenv": "^2.4",
"webflo/drupal-finder": "^1.0.0",
"webmozart/path-util": "^2.3"
},
"require-dev": {
"webflo/drupal-core-require-dev": "~8.5.1"
"webflo/drupal-core-require-dev": "~8.5.1",
"vlucas/phpdotenv": "^2.4"
},
"conflict": {
"drupal/drupal": "*"
Expand All @@ -41,6 +41,8 @@
"classmap": [
"scripts/composer/ScriptHandler.php"
],
},
"autoload-dev": {
"files": ["load.environment.php"]
},
"scripts": {
Expand Down
9 changes: 9 additions & 0 deletions load.environment.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@
/**
* This file is included very early. See autoload.files in composer.json and
* https://getcomposer.org/doc/04-schema.md#files
*
* If you would like to remove phpdotenv from the project, run the following:
*
* 1. Run 'composer remove --dev vlucas/phpdotenv'
* 2. Remove this file and .env.example: 'rm load.environment.php .env.example'
* 3. Remove "files": ["load.environment.php"] from composer.json
* 4. Run 'composer dump-autoload' to regenerate the autoloader.
* 5. Run 'composer update --lock' to update the lock hash, since composer.json
* was manually edited.
*/

use Dotenv\Dotenv;
Expand Down

0 comments on commit c41ab4a

Please sign in to comment.