WebLoginCommand is now an extra instance for hashers etc.
authorRoland Häder <roland@mxchange.org>
Fri, 21 Aug 2009 18:34:52 +0000 (18:34 +0000)
committerRoland Häder <roland@mxchange.org>
Fri, 21 Aug 2009 18:34:52 +0000 (18:34 +0000)
inc/classes/main/commands/web/class_WebLoginCommand.php

index 0f6758f69bce0423d351e9ca4c9eecd85f204506..981ad63a44b4e3a9ea2de5ddeef16ca9e7731c6e 100644 (file)
@@ -21,7 +21,7 @@
  * 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 WebLoginCommand extends BaseCommand implements Commandable {
+class WebLoginCommand extends BaseCommand implements Commandable, Registerable {
        /**
         * Protected constructor
         *
@@ -57,6 +57,9 @@ class WebLoginCommand extends BaseCommand implements Commandable {
         * @return      void
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+               // Set request instance as extra instance
+               Registry::getRegistry()->addInstance('extra', $this);
+
                // Get the application instance
                $appInstance = $this->getResolverInstance()->getApplicationInstance();