*/
private $actionName = "";
- /**
- * Instance of a discovery class
- */
- private $discoveryInstance = null;
-
/**
* Protected constructor
*
return $this->actionName;
}
- /**
- * Protected setter for discovery instance
- *
- * @param $discoveryInstance A discovery instance
- * @return void
- */
- protected final function setDiscoveryInstance (Discoverable $discoveryInstance) {
- $this->discoveryInstance = $discoveryInstance;
- }
-
- /**
- * Protected getter for discovery instance
- *
- * @return $discoveryInstance A discovery instance
- */
- public final function getDiscoveryInstance () {
- return $this->discoveryInstance;
- }
-
/**
* Executes the filter with given request and response objects
*
$discoveryInstance->discover($requestInstance);
// Remember this instance if all wents fine
- $this->setDiscoveryInstance($discoveryInstance);
+ Registry::getRegistry()->addInstance('payments', $discoveryInstance);
} catch (FrameworkException $e) {
// Something bad happend
$requestInstance->requestIsValid(false);