Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move phpdotenv to require-dev. #379 #380

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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