File tree 1 file changed +15
-0
lines changed
src/Puphpet/MainBundle/Extension
1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -98,6 +98,12 @@ public function getExtensionAvailableData($name)
98
98
*/
99
99
public function createArchive (array $ data )
100
100
{
101
+ foreach ($ data as $ key => $ values ) {
102
+ $ name = $ this ->parseDataKeyName ($ values , $ key );
103
+
104
+ $ data [$ key ] = array_replace_recursive ($ this ->extensions [$ name ]['data ' ], $ data [$ key ]);
105
+ }
106
+
101
107
$ this ->archive = new Extension \Archive ;
102
108
$ this ->archive ->queueToFile (
103
109
'puphpet/config.yaml ' ,
@@ -185,6 +191,15 @@ protected function vagrantfileHandling($data, $name)
185
191
return $ name ;
186
192
}
187
193
194
+ protected function parseDataKeyName ($ data , $ name )
195
+ {
196
+ if (stristr ($ name , 'vagrantfile ' ) !== false ) {
197
+ return sprintf ('vagrantfile_%s ' , $ data ['target ' ]);
198
+ }
199
+
200
+ return $ name ;
201
+ }
202
+
188
203
protected function yamlParse ($ file )
189
204
{
190
205
return Yaml::parse ($ file , true );
You can’t perform that action at this time.
0 commit comments