@@ -38,15 +38,6 @@ class Installer extends LibraryInstaller implements InstallerInterface
38
38
*/
39
39
protected $ isForced = false ;
40
40
41
- /**
42
- * If set the package will not be deployed (with any DeployStrategy)
43
- * Using a modman-root-dir is not supported yet but the modman-DeployStrategy so you might want to use the normal
44
- * modman script for this
45
- *
46
- * @var bool
47
- */
48
- protected $ skipPackageDeployment = false ;
49
-
50
41
/**
51
42
* The module's base directory
52
43
*
@@ -115,10 +106,6 @@ public function __construct(IOInterface $io, Composer $composer, $type = 'magent
115
106
if (isset ($ extra ['magento-deploystrategy ' ])) {
116
107
$ this ->setDeployStrategy ((string )$ extra ['magento-deploystrategy ' ]);
117
108
}
118
-
119
- if (!empty ($ extra ['skip-package-deployment ' ])) {
120
- $ this ->skipPackageDeployment = true ;
121
- }
122
109
}
123
110
124
111
/**
@@ -213,11 +200,9 @@ public function install(InstalledRepositoryInterface $repo, PackageInterface $pa
213
200
{
214
201
parent ::install ($ repo , $ package );
215
202
216
- if (!$ this ->skipPackageDeployment ) {
217
- $ strategy = $ this ->getDeployStrategy ($ package );
218
- $ strategy ->setMappings ($ this ->getParser ($ package )->getMappings ());
219
- $ strategy ->deploy ();
220
- }
203
+ $ strategy = $ this ->getDeployStrategy ($ package );
204
+ $ strategy ->setMappings ($ this ->getParser ($ package )->getMappings ());
205
+ $ strategy ->deploy ();
221
206
}
222
207
223
208
/**
@@ -232,19 +217,15 @@ public function install(InstalledRepositoryInterface $repo, PackageInterface $pa
232
217
public function update (InstalledRepositoryInterface $ repo , PackageInterface $ initial , PackageInterface $ target )
233
218
{
234
219
235
- if (!$ this ->skipPackageDeployment ) {
236
- $ initialStrategy = $ this ->getDeployStrategy ($ initial );
237
- $ initialStrategy ->setMappings ($ this ->getParser ($ initial )->getMappings ());
238
- $ initialStrategy ->clean ();
239
- }
220
+ $ initialStrategy = $ this ->getDeployStrategy ($ initial );
221
+ $ initialStrategy ->setMappings ($ this ->getParser ($ initial )->getMappings ());
222
+ $ initialStrategy ->clean ();
240
223
241
224
parent ::update ($ repo , $ initial , $ target );
242
225
243
- if (!$ this ->skipPackageDeployment ) {
244
- $ targetStrategy = $ this ->getDeployStrategy ($ target );
245
- $ targetStrategy ->setMappings ($ this ->getParser ($ target )->getMappings ());
246
- $ targetStrategy ->deploy ();
247
- }
226
+ $ targetStrategy = $ this ->getDeployStrategy ($ target );
227
+ $ targetStrategy ->setMappings ($ this ->getParser ($ target )->getMappings ());
228
+ $ targetStrategy ->deploy ();
248
229
}
249
230
250
231
/**
@@ -255,11 +236,9 @@ public function update(InstalledRepositoryInterface $repo, PackageInterface $ini
255
236
*/
256
237
public function uninstall (InstalledRepositoryInterface $ repo , PackageInterface $ package )
257
238
{
258
- if (!$ this ->skipPackageDeployment ) {
259
- $ strategy = $ this ->getDeployStrategy ($ package );
260
- $ strategy ->setMappings ($ this ->getParser ($ package )->getMappings ());
261
- $ strategy ->clean ();
262
- }
239
+ $ strategy = $ this ->getDeployStrategy ($ package );
240
+ $ strategy ->setMappings ($ this ->getParser ($ package )->getMappings ());
241
+ $ strategy ->clean ();
263
242
264
243
parent ::uninstall ($ repo , $ package );
265
244
}
0 commit comments