]> _ Git - fluidbook_tools.git/commitdiff
wip #5648
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 15 Dec 2022 09:46:08 +0000 (10:46 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 15 Dec 2022 09:46:08 +0000 (10:46 +0100)
src/Compiler/DummyCompiler.php

index bd672c737263303ef579c2eb3c34ad60427073f4..f67265651f7058fe7109fea1d267e621f197a133 100644 (file)
@@ -2,10 +2,16 @@
 
 namespace Fluidbook\Tools\Compiler;
 
+use Cubist\Util\Data;
 use Cubist\Util\Files\VirtualDirectory;
 
 class DummyCompiler implements CompilerInterface {
 
+    /**
+     * @var Data
+     */
+    protected $_data;
+
     public function addContentLock($page, $unlockConditions = '') {
         // TODO: Implement addContentLock() method.
     }
@@ -27,11 +33,11 @@ class DummyCompiler implements CompilerInterface {
     }
 
     public function getSetting($key, $default = null) {
-        // TODO: Implement getSetting() method.
+        return $this->_data->get($key, $default);
     }
 
     public function setSetting($key, $value) {
-        // TODO: Implement setSetting() method.
+        $this->_data->set($key, $value);
     }
 
     public function getVirtualDirectory(): VirtualDirectory {
@@ -77,4 +83,12 @@ class DummyCompiler implements CompilerInterface {
     public function addJsLib($name, $files) {
         // TODO: Implement addJsLib() method.
     }
+
+
+    /**
+     * @param Data $data
+     */
+    public function setData(Data $data): void {
+        $this->_data = $data;
+    }
 }