@@ -175,6 +175,10 @@ public function __construct(IOInterface $io, Composer $composer, $type = 'magent
175
175
$ this ->isForced = (bool )$ extra ['magento-force ' ];
176
176
}
177
177
178
+ if (false !== getenv ('PLATFORM_PROJECT ' )) {
179
+ $ this ->setDeployStrategy ('none ' );
180
+ }
181
+
178
182
if (isset ($ extra ['magento-deploystrategy ' ])) {
179
183
$ this ->setDeployStrategy ((string )$ extra ['magento-deploystrategy ' ]);
180
184
}
@@ -605,7 +609,13 @@ public function update(InstalledRepositoryInterface $repo, PackageInterface $ini
605
609
if ($ this ->hasExtraMap ($ initial )) {
606
610
$ initialStrategy = $ this ->getDeployStrategy ($ initial );
607
611
$ initialStrategy ->setMappings ($ this ->getParser ($ initial )->getMappings ());
608
- $ initialStrategy ->clean ();
612
+ try {
613
+ $ initialStrategy ->clean ();
614
+ } catch (\ErrorException $ e ) {
615
+ if ($ this ->io ->isDebug ()) {
616
+ $ this ->io ->write ($ e ->getMessage ());
617
+ }
618
+ }
609
619
}
610
620
611
621
parent ::update ($ repo , $ initial , $ target );
@@ -712,7 +722,13 @@ public function uninstall(InstalledRepositoryInterface $repo, PackageInterface $
712
722
713
723
$ strategy = $ this ->getDeployStrategy ($ package );
714
724
$ strategy ->setMappings ($ this ->getParser ($ package )->getMappings ());
715
- $ strategy ->clean ();
725
+ try {
726
+ $ strategy ->clean ();
727
+ } catch (\ErrorException $ e ) {
728
+ if ($ this ->io ->isDebug ()) {
729
+ $ this ->io ->write ($ e ->getMessage ());
730
+ }
731
+ }
716
732
717
733
parent ::uninstall ($ repo , $ package );
718
734
}
0 commit comments