]> git.mxchange.org Git - hub.git/commitdiff
A requestInstance must no longer be set in cruncher
authorRoland Häder <roland@mxchange.org>
Mon, 14 Mar 2011 17:58:25 +0000 (17:58 +0000)
committerRoland Häder <roland@mxchange.org>
Mon, 14 Mar 2011 17:58:25 +0000 (17:58 +0000)
application/hub/main/cruncher/mcrypt/class_HubMcryptCruncher.php
application/hub/main/filter/cruncher/class_CruncherInitializationFilter.php

index 5d31bf53bd1e539f9340d7a172c1e43d7ec3c034..dd0c874f6987871ca5754610f55121d030d80643 100644 (file)
@@ -38,16 +38,12 @@ class HubMcryptCruncher extends BaseHubCruncher implements CruncherHelper, Regis
        /**
         * Creates an instance of this hub-cruncher class
         *
-        * @param       $requestInstance        An instance of a Requestable class
         * @return      $cruncherInstance       An instance of this hub-cruncher class
         */
-       public final static function createHubMcryptCruncher (Requestable $requestInstance) {
+       public final static function createHubMcryptCruncher () {
                // Get a new instance
                $cruncherInstance = new HubMcryptCruncher();
 
-               // Set the request instance
-               $cruncherInstance->setRequestInstance($requestInstance);
-
                // Return the instance
                return $cruncherInstance;
        }
index f33ff1d5977954feca4f645ff3a9dd486e1ae02b..57ade35fdd780d85cf69255ac4b9ee6fe1736aad 100644 (file)
@@ -72,7 +72,7 @@ class CruncherInitializationFilter extends BaseFilter implements Filterable {
                // And try to instance it
                try {
                        // Get an instance
-                       $cruncherInstance = ObjectFactory::createObjectByName($className, array($requestInstance));
+                       $cruncherInstance = ObjectFactory::createObjectByName($className);
 
                        // Get a registry
                        $applicationInstance = Registry::getRegistry()->getInstance('app');