]> git.mxchange.org Git - core.git/blobdiff - framework/main/classes/factories/html/class_HtmlNewsFactory.php
Continued:
[core.git] / framework / main / classes / factories / html / class_HtmlNewsFactory.php
index f98fe98dcb13a95448d203e0f765d721bd587534..2dc1517fadbaf979bad3ac7626bdc9a1ce94cf94 100644 (file)
@@ -1,18 +1,19 @@
 <?php
 // Own namespace
-namespace CoreFramework\Factory\News;
+namespace Org\Mxchange\CoreFramework\Factory\News;
 
 // Import framework stuff
-use CoreFramework\Factory\BaseFactory;
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Bootstrap\FrameworkBootstrap;
+use Org\Mxchange\CoreFramework\Factory\BaseFactory;
+use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
+use Org\Mxchange\CoreFramework\Request\Requestable;
 
 /**
  * A news factory for web pages
  *
  * @author             Roland Haeder <webmaster@shipsimu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2017 Core Developer Team
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2020 Core Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.shipsimu.org
  *
@@ -66,11 +67,11 @@ class HtmlNewsFactory extends BaseFactory {
                        if (!empty($action)) {
                                // Then use both for config entry
                                $configEntry = sprintf('news_reader_%s_%s_class', $command, $action);
-                       } // END - if
-               } // END - if
+                       }
+               }
 
                // Get the news reader class name from config
-               $className = $requestInstance->getConfigInstance()->getConfigEntry($configEntry);
+               $className = FrameworkBootstrap::getConfigurationInstance()->getConfigEntry($configEntry);
 
                // Once we have that name, try to load initialize it
                $newsInstance = ObjectFactory::createObjectByName($className, array($requestInstance));