// Import application-specific stuff
use Hub\Database\Frontend\Node\Dht\NodeDistributedHashTableDatabaseWrapper;
+use Hub\Factory\Dht\DhtObjectFactory;
use Hub\Factory\Node\NodeObjectFactory;
use Hub\Network\Receive\Receivable;
use Hub\Node\BaseHubNode;
namespace Hub\Handler\Answer\Okay\NodeList;
// Import application-specific stuff
+use Hub\Factory\Dht\DhtObjectFactory;
use Hub\Network\Receive\Receivable;
// Import framework stuff
namespace Hub\Handler\Message;
// Import hub-specific stuff
+use Hub\Factory\Dht\DhtObjectFactory;
use Hub\Generic\BaseHubSystem;
use Hub\Network\Receive\Receivable;
// Import application-specific stuff
use Hub\Database\Frontend\Node\Dht\NodeDistributedHashTableDatabaseWrapper;
+use Hub\Factory\Dht\DhtObjectFactory;
use Hub\Factory\Node\NodeObjectFactory;
use Hub\Network\Receive\Receivable;
use Hub\Node\BaseHubNode;
parent::__construct(__CLASS__);
// "Cache" CSV path for faster usage
- $this->csvFilePath = $this->getConfigInstance()->getConfigEntry('base_path') . '/' . $this->getConfigInstance()->getConfigEntry('crawler_csv_file_path');
+ $this->csvFilePath = $this->getConfigInstance()->getConfigEntry('root_base_path') . '/' . $this->getConfigInstance()->getConfigEntry('crawler_csv_file_path');
// Initialize directory instance
$directoryInstance = ObjectFactory::createObjectByConfiguredName('directory_class', array($this->csvFilePath));
// Import application-specific stuff
use Hub\Dht\Distributable;
+use Hub\Factory\Dht\DhtObjectFactory;
use Hub\Factory\State\Dht\DhtStateFactory;
// Import framework stuff
// Import application-specific stuff
use Hub\Dht\Distributable;
+use Hub\Factory\Dht\DhtObjectFactory;
use Hub\Factory\State\Dht\DhtStateFactory;
// Import framework stuff
* read-protected
*/
protected function initXmlTemplateEngine ($typePrefix, $xmlTemplateType) {
+ // Set XML template type and prefix
+ $this->xmlTemplateType = $xmlTemplateType;
+ $this->typePrefix = $typePrefix;
+
// Get template instance
$applicationInstance = Registry::getRegistry()->getInstance('app');
$this->setCodeTemplateExtension($this->getConfigInstance()->getConfigEntry($typePrefix . '_message_template_extension'));
// Absolute output path for compiled templates
- $this->setCompileOutputPath($this->getConfigInstance()->getConfigEntry('base_path') . $this->getConfigInstance()->getConfigEntry('compile_output_path'));
+ $this->setCompileOutputPath(sprintf('%s%s',
+ $templateBasePath,
+ $this->getConfigInstance()->getConfigEntry('compile_output_path')
+ ));
// Init a variable stacker
$stackInstance = ObjectFactory::createObjectByConfiguredName($typePrefix . '_' . $xmlTemplateType . '_stacker_class');
// Set it
$this->setStackInstance($stackInstance);
- // Set XML template type and prefix
- $this->xmlTemplateType = $xmlTemplateType;
- $this->typePrefix = $typePrefix;
-
// Set it in main nodes
array_push($this->mainNodes, str_replace('_', '-', $xmlTemplateType));
}
-Subproject commit 3e5fae60e3629d3b12cef0bb786f1db7994044ab
+Subproject commit 7c1f6da0bb508c369410ff7fed93395bd9a9e65a
use CoreFramework\Bootstrap\FrameworkBootstrap;
use CoreFramework\Configuration\FrameworkConfiguration;
use CoreFramework\Factory\ObjectFactory;
+use CoreFramework\Filesystem\FileNotFoundException;
use CoreFramework\Helper\Application\ApplicationHelper;
use CoreFramework\Localization\LanguageSystem;
use CoreFramework\Loader\ClassLoader;