* @param $requestInstance An instance of a class with an Requestable interface
* @param $responseInstance An instance of a class with an Responseable interface
* @return void
- * @throws InvalidInterfaceException If the user class does not implement ManageableMember
*/
public function execute (Requestable $requestInstance, Responseable $responseInstance) {
// Get user instance from registry
$userInstance = Registry::getRegistry()->getInstance('user');
- // Does the user instance implement ManageableMember?
- if (!$userInstance instanceof ManageableMember) {
- // Throw exception here
- throw new InvalidInterfaceException(array($userInstance, 'ManageableMember'), self::EXCEPTION_REQUIRED_INTERFACE_MISSING);
- } // END - if
-
// Get an application instance
$appInstance = $this->getResolverInstance()->getApplicationInstance();