Skip to content
Snippets Groups Projects

You gotta optimize your autoloader, yo.

Merged Matthew Grasmick requested to merge issue/automatic_updates-3428651:3.0.x into 3.0.x
All threads resolved!
1 file
+ 3
3
Compare changes
  • Side-by-side
  • Inline
@@ -445,18 +445,18 @@ abstract class StageBase implements LoggerAwareInterface {
// the installed packages yet.
if ($runtime) {
self::validateRequirements($runtime);
$command = array_merge(['require', '--no-update'], $runtime);
$command = array_merge(['require', '--no-update', '--optimize-autoloader'], $runtime);
$do_stage($command);
}
if ($dev) {
self::validateRequirements($dev);
$command = array_merge(['require', '--dev', '--no-update'], $dev);
$command = array_merge(['require', '--dev', '--no-update', '--optimize-autoloader'], $dev);
$do_stage($command);
}
// If constraints were changed, update those packages.
if ($runtime || $dev) {
$command = array_merge(['update', '--with-all-dependencies'], $runtime, $dev);
$command = array_merge(['update', '--with-all-dependencies', '--optimize-autoloader'], $runtime, $dev);
$do_stage($command);
}
$this->dispatch(new PostRequireEvent($this, $runtime, $dev));
Loading