Skip to content

Commit 5535f86

Browse files
Pull request drupal-composer#58: Use includes-dev instead of dev.
1 parent 05098c2 commit 5535f86

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ of your root `composer.json`.
3838
"includes": [
3939
"sites/default/example.settings.my.php"
4040
],
41-
"dev": [
41+
"includes-dev": [
4242
"my_settings_file_for_development.php"
4343
],
4444
"initial": {
@@ -72,7 +72,7 @@ update.php
7272
web.config
7373
```
7474

75-
Default dev are provided by the plugin:
75+
Default includes dev are provided by the plugin:
7676
```
7777
.csslintrc
7878
.editorconfig
@@ -94,7 +94,7 @@ The `initial` hash lists files that should be copied over only if they do not
9494
exist in the destination. The key specifies the path to the source file, and
9595
the value indicates the path to the destination file.
9696

97-
The `dev` hash lists files that should be copied over only if they do not
97+
The `includes-dev` hash lists files that should be copied over only if they do not
9898
exist in the destination and if the dev packages are installed.
9999

100100
## Limitation

src/Handler.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public function downloadScaffold($dev = FALSE) {
133133
$includes = $this->getIncludes();
134134
// Check dev files if necessary.
135135
if ($dev) {
136-
$includes = array_merge($includes, $this->getDev());
136+
$includes = array_merge($includes, $this->getIncludesDev());
137137
}
138138
$files = array_diff($includes, $this->getExcludes());
139139

@@ -296,8 +296,8 @@ protected function getIncludes() {
296296
*
297297
* @return array
298298
*/
299-
protected function getDev() {
300-
return $this->getNamedOptionList('dev', 'getDevDefault');
299+
protected function getIncludesDev() {
300+
return $this->getNamedOptionList('includes-dev', 'getIncludesDevDefault');
301301
}
302302

303303
/**
@@ -338,8 +338,8 @@ protected function getOptions() {
338338
'omit-defaults' => FALSE,
339339
'excludes' => [],
340340
'includes' => [],
341+
'includes-dev' => [],
341342
'initial' => [],
342-
'dev' => [],
343343
'source' => 'https://cgit.drupalcode.org/drupal/plain/{path}?h={version}',
344344
// Github: https://raw.githubusercontent.com/drupal/drupal/{version}/{path}
345345
];
@@ -380,7 +380,7 @@ protected function getIncludesDefault() {
380380
/**
381381
* Holds default dev files list.
382382
*/
383-
protected function getDevDefault() {
383+
protected function getIncludesDevDefault() {
384384
$version = $this->getDrupalCoreVersion($this->getDrupalCorePackage());
385385
list($major, $minor) = explode('.', $version, 3);
386386
$version = "$major.$minor";

0 commit comments

Comments
 (0)