]> git.mxchange.org Git - core.git/blobdiff - framework/main/classes/application/class_BaseApplication.php
Continued:
[core.git] / framework / main / classes / application / class_BaseApplication.php
index e638a23a80fa0a62c230c623e41cbc047e904c0e..3a6f8e6aeb85bbc260b1be6861ec484b8f0fce07 100644 (file)
@@ -1,10 +1,10 @@
 <?php
 // Own namespace
-namespace CoreFramework\Application;
+namespace Org\Mxchange\CoreFramework\Application;
 
 // Import framework stuff
-use CoreFramework\Object\BaseFrameworkSystem;
-use CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Object\BaseFrameworkSystem;
+use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
 
 /**
  * A general application class for the ApplicationHelper classes.
@@ -28,7 +28,7 @@ use CoreFramework\Registry\Registry;
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
-class BaseApplication extends BaseFrameworkSystem {
+abstract class BaseApplication extends BaseFrameworkSystem {
        /**
         * Protected constructor
         *
@@ -39,11 +39,8 @@ class BaseApplication extends BaseFrameworkSystem {
                // Call parent constructor
                parent::__construct($className);
 
-               // Get registry instance
-               $registryInstance = Registry::getRegistry();
-
-               // Add this instance
-               $registryInstance->addInstance('application', $this);
+               // Set this instance as application instance
+               GenericRegistry::getRegistry()->addInstance('application', $this);
        }
 
 }