Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Zend\Mvc\Application

run() returns the Application object which now has a deprecated
send() method.  This will ensure IDE's display a deprecated/
strike-through send() method when Zend\Mvc consumers (The skeleton
application applications) use send() from their index.php file.
  • Loading branch information...
commit e2d8c14b187507675065eb514eb026597ded2000 1 parent c8847bd
Ralph Schindler authored
Showing with 10 additions and 1 deletion.
  1. +10 −1 library/Zend/Mvc/Application.php
11 library/Zend/Mvc/Application.php
View
@@ -13,6 +13,7 @@
use Zend\EventManager\EventManagerInterface;
use Zend\ServiceManager\ServiceManager;
use Zend\Stdlib\ResponseInterface;
+use Zend\Stdlib\Nop;
/**
* Main application class for invoking applications
@@ -304,8 +305,16 @@ public function run()
$response = $this->getResponse();
$event->setResponse($response);
+ $this->completeRequest($event);
- return $this->completeRequest($event);
+ return $this;
+ }
+
+ /**
+ * @deprecated
+ */
+ public function send()
+ {
}
/**
Please sign in to comment.
Something went wrong with that request. Please try again.