/**
* 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;
}
// 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');