]> git.mxchange.org Git - hub.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Wed, 2 Dec 2020 19:33:43 +0000 (20:33 +0100)
committerRoland Häder <roland@mxchange.org>
Wed, 2 Dec 2020 19:33:43 +0000 (20:33 +0100)
- added missing trait(s)

Signed-off-by: Roland Häder <roland@mxchange.org>
application/hub/classes/helper/class_BaseHubSystemHelper.php
application/hub/classes/template/xml/answer/requests/class_XmlRequestNodeListAnswerTemplateEngine.php

index 2bac436a9aff06e2aaf47ad200522bed9bc1be89..1c2ac60e282f3ce0c0e66f108ba54b8e1f44caf1 100644 (file)
@@ -5,6 +5,9 @@ namespace Org\Shipsimu\Hub\Helper;
 // Import application-specific stuff
 use Org\Shipsimu\Hub\Generic\BaseHubSystem;
 
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Traits\Template\CompileableTemplateTrait;
+
 /**
  * A general hub helper class. This class does not extend BaseHelper.
  *
@@ -28,10 +31,13 @@ use Org\Shipsimu\Hub\Generic\BaseHubSystem;
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
  */
 abstract class BaseHubSystemHelper extends BaseHubSystem implements HubHelper {
+       // Load traits
+       use CompileableTemplateTrait;
+
        /**
         * Recipient id
         */
-       private $recipientId = '';
+       private $recipientId = 'invalid';
 
        /**
         * Recipient type
index b8168c28ca4e23bf9f91d710243da464b641a794..ae6307421bf662687e60e9d462a42753af5cdce8 100644 (file)
@@ -9,6 +9,7 @@ use Org\Shipsimu\Hub\Template\Engine\Xml\Network\Answer\BaseXmlAnswerTemplateEng
 use Org\Mxchange\CoreFramework\Factory\Template\XmlTemplateEngineFactory;
 use Org\Mxchange\CoreFramework\Registry\Registerable;
 use Org\Mxchange\CoreFramework\Template\Xml\CompileableXmlTemplate;
+use Org\Mxchange\CoreFramework\Traits\Template\CompileableTemplateTrait;
 
 /**
  * A RequestNodeListAnswer template engine class for XML templates
@@ -34,6 +35,9 @@ use Org\Mxchange\CoreFramework\Template\Xml\CompileableXmlTemplate;
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
  */
 class XmlRequestNodeListAnswerTemplateEngine extends BaseXmlAnswerTemplateEngine implements CompileableXmlTemplate, Registerable {
+       // Load traits
+       use CompileableTemplateTrait;
+
        // Constants for array elements
        const REQUEST_DATA_SESSION_ID    = 'session-id';
        const REQUEST_DATA_NODE_LIST     = 'node-list';