From: Vincent Vanwaelscappel Date: Tue, 2 Nov 2021 14:44:22 +0000 (+0100) Subject: wait #4850 @1 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=5042f54129e07a98f4d8e679c48a9589f2621c81;p=fluidbook_tools.git wait #4850 @1 --- diff --git a/src/Compiler/Compiler.php b/src/Compiler/Compiler.php index b61eede..a3921be 100644 --- a/src/Compiler/Compiler.php +++ b/src/Compiler/Compiler.php @@ -170,10 +170,8 @@ class Compiler implements ShouldQueue, ShouldBeUnique } $this->vdir = new VirtualDirectory($this->out); - if ($this->stub !== '') { - $this->vdir->copyDirectory($this->stub, '/'); - } + $this->prepareStub(); $this->compileContents(); $this->compileSearch(); $this->compileConfig(); @@ -183,6 +181,13 @@ class Compiler implements ShouldQueue, ShouldBeUnique stop_measure('Compile fluidbook'); } + public function prepareStub() + { + if ($this->stub !== '') { + $this->vdir->copyDirectory($this->stub, '/'); + } + } + public function compileContents() { for ($i = 1; $i <= $this->getPageCount(); $i++) {