$this->shortName = (string) $shortName;
}
+ /**
+ * Assigns extra application-depending data
+ *
+ * @param $templateInstance An instance of a CompileableTemplate
+ * @return void
+ * @todo Nothing to add?
+ */
+ public function assignExtraTemplateData (CompileableTemplate $templateInstance) {
+ }
+
/**
* Launches the LFDB2 system
*
// Is no external IP set?
if ($this->getConfigInstance()->getConfigEntry('external_ip') == '') {
// Determine external IP
- $this->getConfigInstance()->setConfigEntry('external_ip', ConsoleTools::determineExternalIp());
+ $this->getConfigInstance()->setConfigEntry('external_ip', ConsoleTools::determineExternalAddress());
} // END - if
// Default response is console
// Some hub-specific configuration like port hostname where we will listen, etc.
$cfg = FrameworkConfiguration::getSelfInstance();
-// CFG: INTERNAL-IP
-$cfg->setConfigEntry('internal_ip', ConsoleTools::acquireSelfIPAddress());
+// CFG: INTERNAL-ADDRESS
+$cfg->setConfigEntry('internal_address', '');
// CFG: EXTERNAL-IP
$cfg->setConfigEntry('external_ip', '');
// CFG: DEFAULT-CONSOLE-COMMAND
$cfg->setConfigEntry('default_console_command', 'server');
-// CFG: DEFAULT-LFDB2CONSOLE-COMMAND
-$cfg->setConfigEntry('default_lfdb2console_command', 'server');
+// CFG: DEFAULT-LFDB2-CONSOLE-COMMAND
+$cfg->setConfigEntry('default_lfdb2_console_command', 'server');
-// CFG: LFDB2CONSOLE-CMD-SERVER-RESOLVER-CLASS
-$cfg->setConfigEntry('lfdb2console_cmd_server_resolver_class', 'Lfdb2ConsoleCommandResolver');
+// CFG: DEFAULT-LFDB2-CONSOLE-CONTROLLER
+$cfg->setConfigEntry('default_lfdb2_console_controller', 'server');
+
+// CFG: LFDB2-CONSOLE-CMD-SERVER-RESOLVER-CLASS
+$cfg->setConfigEntry('lfdb2_console_cmd_server_resolver_class', 'Lfdb2ConsoleCommandResolver');
// CFG: NEWS-DOWNLOAD-FILTER
$cfg->setConfigEntry('news_download_filter', 'NewsDownloadFilter');
// CFG: NEWS-PROCESS-FILTER
$cfg->setConfigEntry('news_process_filter', 'NewsProcessFilter');
-// CFG: NEWS-READER-CLASS
-$cfg->setConfigEntry('news_reader_class', 'ConsoleNewsReader');
+// CFG: NEWS-READER-SERVER-CLASS
+$cfg->setConfigEntry('news_reader_server_class', 'ConsoleNewsReader');
// CFG: NEWS-SERVER-LIMIT
$cfg->setConfigEntry('news_server_limit', 5);
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-// Get config instance
-$cfg = FrameworkConfiguration::getSelfInstance();
-
-// Load all classes for the application
-foreach ($lowerClasses as $class) {
- // Try to load the application classes
- ClassLoader::getSelfInstance()->scanClassPath(sprintf('%s/%s/%s', $cfg->getConfigEntry('application_path'), $cfg->getConfigEntry('app_name'), $class));
-} // END - foreach
-
-// Clean up the global namespace
-unset($lowerClasses);
-unset($class);
+// Scan for application's classes, exceptions and interfaces
+ClassLoader::scanApplicationClasses();
// [EOF]
?>