]> _ Git - fluidbook_tools.git/commitdiff
wait #4850 @1
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 2 Nov 2021 14:44:22 +0000 (15:44 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 2 Nov 2021 14:44:22 +0000 (15:44 +0100)
src/Compiler/Compiler.php

index b61eede8ba261cca78fe1f107689e97bae449f05..a3921bec810cb49f174c3f47827478454af6bc4e 100644 (file)
@@ -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++) {