Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Commit

Permalink
Zend\Mvc\Application
Browse files Browse the repository at this point in the history
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
ralphschindler committed Jan 25, 2013
1 parent c8847bd commit e2d8c14
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion library/Zend/Mvc/Application.php
Expand Up @@ -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
Expand Down Expand Up @@ -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()
{
}

/**
Expand Down

0 comments on commit e2d8c14

Please sign in to comment.