]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/resolver/command/console/class_HubConsoleCommandResolver.php
Copyright notice updated, our first hub application introduced (which is incomplete)
[hub.git] / application / hub / main / resolver / command / console / class_HubConsoleCommandResolver.php
index 19811af95f3a73b91e99e1dff464f7c46e6f24d3..5c7b742072af8484120baa3b784e2d4ede103911 100644 (file)
@@ -4,7 +4,7 @@
  *
  * @author             Roland Haeder <webmaster@ship-simu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009, 2010 Hub Developer Team
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2011 Hub Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.ship-simu.org
  *
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
  */
 class HubConsoleCommandResolver extends BaseCommandResolver implements CommandResolver {
-       /**
-        * Last successfull resolved command
-        */
-       private $lastCommandInstance = null;
-
        /**
         * Protected constructor
         *
@@ -37,7 +32,7 @@ class HubConsoleCommandResolver extends BaseCommandResolver implements CommandRe
                parent::__construct(__CLASS__);
 
                // Set prefix to "HubConsole"
-               $this->setCommandPrefix("HubConsole");
+               $this->setClassPrefix('HubConsole');
        }
 
        /**
@@ -107,7 +102,7 @@ class HubConsoleCommandResolver extends BaseCommandResolver implements CommandRe
                } // END - if
 
                // Set last command
-               $this->lastCommandInstance = $commandInstance;
+               $this->setResolvedInstance($commandInstance);
 
                // Return the resolved command instance
                return $commandInstance;