Source for file ForwardingException.php

Documentation is available at ForwardingException.php

  1. 1: <?php
  2. 2:  
  3. 3: /**
  4. 4:  * Nette Framework
  5. 5:  *
  6. 6:  * Copyright (c) 2004, 2009 David Grudl (http://davidgrudl.com)
  7. 7:  *
  8. 8:  * This source file is subject to the "Nette license" that is bundled
  9. 9:  * with this package in the file license.txt.
  10. 10:  *
  11. 11:  * For more information please see http://nettephp.com
  12. 12:  *
  13. 13:  * @copyright  Copyright (c) 2004, 2009 David Grudl
  14. 14:  * @license    http://nettephp.com/license  Nette license
  15. 15:  * @link       http://nettephp.com
  16. 16:  * @category   Nette
  17. 17:  * @package    Nette\Application
  18. 18:  */
  19. 19:  
  20. 20:  
  21. 21:  
  22. 22: require_once dirname(__FILE__'/../Application/AbortException.php';
  23. 23:  
  24. 24:  
  25. 25:  
  26. 26: /**
  27. 27:  * Abort presenter and forwards to new request.
  28. 28:  *
  29. 29:  * @author     David Grudl
  30. 30:  * @copyright  Copyright (c) 2004, 2009 David Grudl
  31. 31:  * @package    Nette\Application
  32. 32:  */
  33. 34: {
  34. 35:     /** @var PresenterRequest */
  35. 36:     private $request;
  36. 37:  
  37. 38:  
  38. 39:  
  39. 40:     public function __construct(PresenterRequest $request)
  40. 41:     {
  41. 42:         parent::__construct();
  42. 43:         $this->request $request;
  43. 44:     }
  44. 45:  
  45. 46:  
  46. 47:  
  47. 48:     /**
  48. 49:      * @return PresenterRequest 
  49. 50:      */
  50. 51:     final public function getRequest()
  51. 52:     {
  52. 53:         return $this->request;
  53. 54:     }
  54. 55:  
  55. 56: }