Permalink
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...
1 parent c8847bd commit e2d8c14b187507675065eb514eb026597ded2000 @ralphschindler ralphschindler committed Jan 25, 2013
Showing with 10 additions and 1 deletion.
  1. +10 −1 library/Zend/Mvc/Application.php
@@ -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()
+ {
}
/**

0 comments on commit e2d8c14

Please sign in to comment.