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 143e396
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
8 changes: 5 additions & 3 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 @@ -40,7 +40,9 @@
"autoload": {
"classmap": [
"scripts/composer/ScriptHandler.php"
],
]
},
"autoload-dev": {
"files": ["load.environment.php"]
},
"scripts": {
Expand Down
14 changes: 13 additions & 1 deletion load.environment.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
<?php

/**
* This file is included very early. See autoload.files in composer.json and
* This file is included very early. See autoload-dev.files in composer.json and
* https://getcomposer.org/doc/04-schema.md#files
*
* For performance reasons, this file is NOT included in --no-dev installs.
*
* If you would like to remove phpdotenv entirely from your 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 143e396

Please sign in to comment.