<?php
namespace Main\Command;

use Main\Command\Command;
use \Main\Misc\Registry;
use \Main\Misc\Request;
use \Main\Misc\Response;
require_once 'Command.php';
require_once 'Request.php';
require_once 'Response.php';

// If no other command found then execute this
// command by default.
class DefaultCommand extends Command
{
	public function Execute(Request $request)
	{
		//echo "Default command executed";
		$response = Registry::Instance()->Response;							// Get Response object
		$response->SetViewName("DefaultView");								// Set view we want to display (DefaultView.php)
		$response->IndexSetOut('cmd', $request->IndexGetProperty('cmd'));	// Pass this view the command value for display
		return $response;
	}
}
?>