]> git.mxchange.org Git - lfdb2.git/commitdiff
Upgrade to latest 'core' changes which involves many changes.
authorRoland Haeder <roland@mxchange.org>
Sun, 9 Aug 2015 21:02:17 +0000 (23:02 +0200)
committerRoland Haeder <roland@mxchange.org>
Sun, 9 Aug 2015 21:02:17 +0000 (23:02 +0200)
Signed-off-by: Roland Haeder <roland@mxchange.org>
application/lfdb2/class_ApplicationHelper.php
application/lfdb2/config.php
application/lfdb2/init.php
application/lfdb2/loader.php
application/lfdb2/main/resolver/controller/console/class_Lfdb2ConsoleControllerResolver.php
core

index d93593a98f03d5afff31a19b3a71f99222c2daf7..d580401c9ce02fcd2df1862f83864ae0924b9bf1 100644 (file)
@@ -143,6 +143,16 @@ class ApplicationHelper extends BaseFrameworkSystem implements ManageableApplica
                $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
         *
@@ -155,7 +165,7 @@ class ApplicationHelper extends BaseFrameworkSystem implements ManageableApplica
                // 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
index 9c0f73af2af74b4cbacbe1bb12cbec684a5486cf..fca0ae181efcab2ed5f1ac767a0a16216dea5081 100644 (file)
@@ -24,8 +24,8 @@
 // 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', '');
@@ -33,11 +33,14 @@ $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');
@@ -45,8 +48,8 @@ $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);
index 7f4120e3f165d908c2726e768c4bc749bb732108..41f74e4c6f122d97d4a0845e007b1322cd384562 100644 (file)
@@ -34,8 +34,5 @@ ApplicationHelper::createDebugInstance('ApplicationHelper');
 // the inc/database.php script
 require($cfg->getConfigEntry('base_path') . 'inc/database.php');
 
-// Get's our IP address
-ConsoleTools::acquireSelfIPAddress();
-
 // [EOF]
 ?>
index 9aca20bf4cea74c53319005c7d7c83551050f030..09d285ae64e4306b4eb2ed4e29bc8141c2d560ee 100644 (file)
  * 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]
 ?>
index 00ef4adfe9eed770b7a806e92d81a2d52dbf4a87..c9258804b3c0aec6a22038d155e20f38c5dccb20 100644 (file)
@@ -31,8 +31,8 @@ class Lfdb2ConsoleControllerResolver extends BaseControllerResolver implements C
                // Call parent constructor
                parent::__construct(__CLASS__);
 
-               // Set prefix to "Lfdb2Console"
-               $this->setClassPrefix('Lfdb2Console');
+               // Set prefix to "lfdb2_console"
+               $this->setClassPrefix('lfdb2_console');
        }
 
        /**
diff --git a/core b/core
index a0551c30b2e11aadba3f0513ef67c36ca7e60552..23aa45d4a6205e26184190ca446316d06a9b4648 160000 (submodule)
--- a/core
+++ b/core
@@ -1 +1 @@
-Subproject commit a0551c30b2e11aadba3f0513ef67c36ca7e60552
+Subproject commit 23aa45d4a6205e26184190ca446316d06a9b4648