@@ -52,27 +52,39 @@ protected function configure()
52
52
// @codingStandardsIgnoreEnd
53
53
}
54
54
55
- protected function execute (InputInterface $ input, OutputInterface $ output )
55
+ protected function getExtraRequires (InputInterface $ input )
56
56
{
57
- $ options = $ input ->getOptions ();
58
-
59
- $ options ['require ' ] = array_merge ([
57
+ $ require = [
60
58
'cweagans/composer-patches ^1.6.0 ' ,
61
59
'hussainweb/drupal-composer-helper ^1.0 ' ,
62
60
$ input ->getOption ('core ' ),
63
61
'drupal/console ^1.0.1 ' ,
64
62
'drush/drush ~8.0|^9.0 ' ,
65
- ], $ options ['require ' ]);
63
+ ];
64
+ return $ require ;
65
+ }
66
66
67
- $ options ['require-dev ' ] = array_merge ([
67
+ protected function getExtraRequireDevs (InputInterface $ input )
68
+ {
69
+ $ require_dev = [
68
70
'behat/mink ~1.7 ' ,
69
71
'behat/mink-goutte-driver ~1.2 ' ,
70
72
'jcalderonzumba/gastonjs ~1.0.2 ' ,
71
73
'jcalderonzumba/mink-phantomjs-driver ~0.3.1 ' ,
72
74
'mikey179/vfsstream ~1.2 ' ,
73
75
'phpunit/phpunit >=4.8.28 <5 ' ,
74
76
'symfony/css-selector ~2.8 ' ,
75
- ], $ options ['require-dev ' ]);
77
+ ];
78
+ return $ require_dev ;
79
+ }
80
+
81
+ protected function execute (InputInterface $ input , OutputInterface $ output )
82
+ {
83
+ $ options = $ input ->getOptions ();
84
+
85
+ $ options ['require ' ] = array_merge ($ this ->getExtraRequires ($ input ), $ options ['require ' ]);
86
+
87
+ $ options ['require-dev ' ] = array_merge ($ this ->getExtraRequireDevs ($ input ), $ options ['require-dev ' ]);
76
88
77
89
$ input ->setOption ('require ' , $ options ['require ' ]);
78
90
$ input ->setOption ('require-dev ' , $ options ['require-dev ' ]);
0 commit comments