@@ -88,7 +88,7 @@ public function onPostCmdEvent(\Composer\Script\Event $event) {
88
88
// Only install the scaffolding if drupal/core was installed,
89
89
// AND there are no scaffolding files present.
90
90
if (isset ($ this ->drupalCorePackage )) {
91
- $ this ->downloadScaffold ($ event-> isDevMode () );
91
+ $ this ->downloadScaffold ($ event );
92
92
// Generate the autoload.php file after generating the scaffold files.
93
93
$ this ->generateAutoload ();
94
94
}
@@ -97,18 +97,18 @@ public function onPostCmdEvent(\Composer\Script\Event $event) {
97
97
/**
98
98
* Downloads drupal scaffold files for the current process.
99
99
*
100
- * @param bool $dev
101
- * TRUE if dev packages are installed. FALSE otherwise .
100
+ * @param \Composer\Script\Event $event
101
+ * The Composer event .
102
102
*/
103
- public function downloadScaffold ($ dev = FALSE ) {
103
+ public function downloadScaffold ($ event ) {
104
104
$ drupalCorePackage = $ this ->getDrupalCorePackage ();
105
105
$ webroot = realpath ($ this ->getWebRoot ());
106
106
107
107
// Collect options, excludes, dev and settings files.
108
108
$ options = $ this ->getOptions ();
109
109
$ includes = $ this ->getIncludes ();
110
110
// Check dev files if necessary.
111
- if ($ dev ) {
111
+ if ($ event -> isDevMode () ) {
112
112
$ includes = array_merge ($ includes , $ this ->getIncludesDev ());
113
113
}
114
114
$ files = array_diff ($ includes , $ this ->getExcludes ());
0 commit comments