* @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 FilterChainException If this filter fails to operate
*/
public function execute (Requestable $requestInstance, Responseable $responseInstance) {
// Execute the parent execute method
$responseInstance->addFatalMessage('refill_page_not_active');
// Abort here
- return false;
+ throw new FilterChainException($this, self::EXCEPTION_FILTER_CHAIN_INTERCEPTED);
} // END - if
}
}
* @param $responseInstance An instance of a class with an Responseable interface
* @return void
* @todo Maybe we need to added some more generic tests on the request here?
+ * @throws FilterChainException If this filter fails to operate
*/
public function execute (Requestable $requestInstance, Responseable $responseInstance) {
// Execute the parent execute method
$responseInstance->addFatalMessage('refill_page_required_fields_missing');
// Abort here
- return false;
+ throw new FilterChainException($this, self::EXCEPTION_FILTER_CHAIN_INTERCEPTED);
} // END - if
}
}
parent::execute($requestInstance, $responseInstance);
// Implement this!
+ $requestInstance->debugInstance();
$this->partialStub("Please implement this method.");
}
}