use Org\Mxchange\CoreFramework\Middleware\Compressor\CompressorChannel;
use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
use Org\Mxchange\CoreFramework\Parser\Parseable;
+use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
use Org\Mxchange\CoreFramework\Registry\Register;
-use Org\Mxchange\CoreFramework\Registry\Registry;
use Org\Mxchange\CoreFramework\Resolver\Resolver;
use Org\Mxchange\CoreFramework\Result\Database\CachedDatabaseResult;
use Org\Mxchange\CoreFramework\Result\Search\SearchableResult;
*
* @author Roland Haeder <webmaster@shipsimu.org>
* @version 0.0.0
-<<<<<<< HEAD:framework/main/classes/class_BaseFrameworkSystem.php
* @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2017 Core Developer Team
-=======
- * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2016 Core Developer Team
->>>>>>> Some updates::inc/main/classes/class_BaseFrameworkSystem.php
* @license GNU GPL 3.0 or any newer version
* @link http://www.shipsimu.org
*
* @return $configInstance Configuration instance
*/
public final function getConfigInstance () {
- $configInstance = Registry::getRegistry()->getInstance('config');
+ $configInstance = GenericRegistry::getRegistry()->getInstance('config');
return $configInstance;
}
*/
public final function getDebugInstance () {
// Get debug instance
- $debugInstance = Registry::getRegistry()->getInstance('debug');
+ $debugInstance = GenericRegistry::getRegistry()->getInstance('debug');
// Return it
return $debugInstance;
* @return $webOutputInstance - Instance to class WebOutput
*/
public final function getWebOutputInstance () {
- $webOutputInstance = Registry::getRegistry()->getInstance('web_output');
+ $webOutputInstance = GenericRegistry::getRegistry()->getInstance('web_output');
return $webOutputInstance;
}
*/
public final function getDatabaseInstance () {
// Get instance
- $databaseInstance = Registry::getRegistry()->getInstance('db_instance');
+ $databaseInstance = GenericRegistry::getRegistry()->getInstance('db_instance');
// Return instance
return $databaseInstance;
* @return $compressorInstance The compressor channel
*/
public final function getCompressorChannel () {
- $compressorInstance = Registry::getRegistry()->getInstance('compressor');
+ $compressorInstance = GenericRegistry::getRegistry()->getInstance('compressor');
return $compressorInstance;
}
* @return $applicationInstance An instance of a manageable application helper class
*/
protected final function getApplicationInstance () {
- $applicationInstance = Registry::getRegistry()->getInstance('app');
+ $applicationInstance = GenericRegistry::getRegistry()->getInstance('application');
return $applicationInstance;
}
* @return $langInstance An instance to the language sub-system
*/
protected final function getLanguageInstance () {
- $langInstance = Registry::getRegistry()->getInstance('language');
+ $langInstance = GenericRegistry::getRegistry()->getInstance('language');
return $langInstance;
}
// Is the application instance set?
if (is_null($applicationInstance)) {
// Get the current instance
- $applicationInstance = Registry::getRegistry()->getInstance('app');
+ $applicationInstance = GenericRegistry::getRegistry()->getInstance('app');
// Still null?
if (is_null($applicationInstance)) {
Registry::getRegistry()->addInstance('debug', $debugInstance);
} else {
// Get instance from registry
- $debugInstance = Registry::getRegistry()->getInstance('debug');
+ $debugInstance = GenericRegistry::getRegistry()->getDebugInstance();
}
// Return it
*/
protected function initWebOutputInstance () {
// Get application instance
- $applicationInstance = Registry::getRegistry()->getInstance('app');
+ $applicationInstance = GenericRegistry::getRegistry()->getInstance('app');
// Init web output instance
$outputInstance = ObjectFactory::createObjectByConfiguredName('output_class', array($applicationInstance));