설명 없음

PostResponseEvent.php 995B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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\HttpFoundation\Response;
  13. use Symfony\Component\HttpKernel\HttpKernelInterface;
  14. /**
  15. * @deprecated since Symfony 4.3, use TerminateEvent instead
  16. */
  17. class PostResponseEvent extends KernelEvent
  18. {
  19. private $response;
  20. public function __construct(HttpKernelInterface $kernel, Request $request, Response $response)
  21. {
  22. parent::__construct($kernel, $request, HttpKernelInterface::MASTER_REQUEST);
  23. $this->response = $response;
  24. }
  25. /**
  26. * Returns the response for which this event was thrown.
  27. *
  28. * @return Response
  29. */
  30. public function getResponse()
  31. {
  32. return $this->response;
  33. }
  34. }