Dashboard sipadu mbip
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

GetResponseForControllerResultEvent.php 1.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Symfony\Component\HttpKernel\Event;
  11. use Symfony\Component\HttpFoundation\Request;
  12. use Symfony\Component\HttpKernel\HttpKernelInterface;
  13. /**
  14. * @deprecated since Symfony 4.3, use ViewEvent instead
  15. */
  16. class GetResponseForControllerResultEvent extends RequestEvent
  17. {
  18. /**
  19. * The return value of the controller.
  20. *
  21. * @var mixed
  22. */
  23. private $controllerResult;
  24. public function __construct(HttpKernelInterface $kernel, Request $request, int $requestType, $controllerResult)
  25. {
  26. parent::__construct($kernel, $request, $requestType);
  27. $this->controllerResult = $controllerResult;
  28. }
  29. /**
  30. * Returns the return value of the controller.
  31. *
  32. * @return mixed The controller return value
  33. */
  34. public function getControllerResult()
  35. {
  36. return $this->controllerResult;
  37. }
  38. /**
  39. * Assigns the return value of the controller.
  40. *
  41. * @param mixed $controllerResult The controller return value
  42. */
  43. public function setControllerResult($controllerResult)
  44. {
  45. $this->controllerResult = $controllerResult;
  46. }
  47. }