3 * Zend Framework (http://framework.zend.com/)
5 * @link http://github.com/zendframework/zf2 for the canonical source repository
6 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
7 * @license http://framework.zend.com/license/new-bsd New BSD License
10 namespace Zend\Mvc\ResponseSender
;
12 use Zend\Http\PhpEnvironment\Response
;
14 class PhpEnvironmentResponseSender
extends HttpResponseSender
17 * Send php environment response
19 * @param SendResponseEvent $event
20 * @return PhpEnvironmentResponseSender
22 public function __invoke(SendResponseEvent
$event)
24 $response = $event->getResponse();
25 if (!$response instanceof Response
) {
29 $this->sendHeaders($event)
30 ->sendContent($event);
31 $event->stopPropagation(true);