From 7ef5b4d55ecd91892360d927a57a7f2aad5c7082 Mon Sep 17 00:00:00 2001 From: Miha Vrhovnik Date: Fri, 13 Nov 2015 11:12:12 +0100 Subject: [PATCH] Speed-p build process Call the startBuffering method when building archive to speedup the phar building --- src/lib/KevinGH/Box/Command/Build.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/KevinGH/Box/Command/Build.php b/src/lib/KevinGH/Box/Command/Build.php index 497d5c2b..e87dbe90 100644 --- a/src/lib/KevinGH/Box/Command/Build.php +++ b/src/lib/KevinGH/Box/Command/Build.php @@ -429,6 +429,7 @@ protected function execute(InputInterface $input, OutputInterface $output) $this->putln('?', "Output path: $path"); $this->box = Box::create($path); + $this->box->getPhar()->startBuffering(); // set replacement values, if any if (array() !== ($values = $this->config->getProcessedReplacements())) {