From 46f826daeaace0993fc8710162ccbf872c834c80 Mon Sep 17 00:00:00 2001 From: Yanick Witschi Date: Wed, 21 Feb 2018 19:19:31 +0100 Subject: [PATCH] Use the new lazy build mode --- src/lib/KevinGH/Box/Command/Build.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib/KevinGH/Box/Command/Build.php b/src/lib/KevinGH/Box/Command/Build.php index f4be0fee..aef003e1 100644 --- a/src/lib/KevinGH/Box/Command/Build.php +++ b/src/lib/KevinGH/Box/Command/Build.php @@ -428,7 +428,7 @@ protected function execute(InputInterface $input, OutputInterface $output) $this->putln('?', "Output path: $path"); - $this->box = Box::create($path); + $this->box = Box::create($path, null, null, true); $this->box->getPhar()->startBuffering(); // set replacement values, if any @@ -532,6 +532,9 @@ protected function execute(InputInterface $input, OutputInterface $output) ); } + // Flush lazy + $this->box->flushLazy(); + // set the appropriate stub if (true === $this->config->isStubGenerated()) { $this->putln('?', 'Generating new stub...');