00001 <?php 00024 class WebLoginFailedController extends BaseController implements Controller { 00030 protected function __construct () { 00031 // Call parent constructor 00032 parent::__construct(__CLASS__); 00033 } 00034 00041 public final static function createWebLoginFailedController (CommandResolver $resolverInstance) { 00042 // Create the instance 00043 $controllerInstance = new WebLoginFailedController(); 00044 00045 // Set the command resolver 00046 $controllerInstance->setResolverInstance($resolverInstance); 00047 00048 // Return the prepared instance 00049 return $controllerInstance; 00050 } 00051 00059 public function handleRequest (Requestable $requestInstance, Responseable $responseInstance) { 00060 // Get the command instance 00061 $commandInstance = $this->getResolverInstance()->resolveCommandByRequest($requestInstance); 00062 00063 // This request was valid! :-D 00064 $requestInstance->requestIsValid(); 00065 00066 // Execute the command 00067 $commandInstance->execute($requestInstance, $responseInstance); 00068 00069 // Flush the response out 00070 $responseInstance->flushBuffer(); 00071 } 00072 } 00073 00074 // [EOF] 00075 ?>
1.5.6