"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/Http/Server.php" between
cakephp-4.0.1.tar.gz and cakephp-4.0.2.tar.gz

About: CakePHP is a rapid development framework for PHP applications. Source code.

Server.php  (cakephp-4.0.1):Server.php  (cakephp-4.0.2)
skipping to change at line 26 skipping to change at line 26
*/ */
namespace Cake\Http; namespace Cake\Http;
use Cake\Core\HttpApplicationInterface; use Cake\Core\HttpApplicationInterface;
use Cake\Core\PluginApplicationInterface; use Cake\Core\PluginApplicationInterface;
use Cake\Event\EventDispatcherInterface; use Cake\Event\EventDispatcherInterface;
use Cake\Event\EventDispatcherTrait; use Cake\Event\EventDispatcherTrait;
use Cake\Event\EventManager; use Cake\Event\EventManager;
use Cake\Event\EventManagerInterface; use Cake\Event\EventManagerInterface;
use InvalidArgumentException; use InvalidArgumentException;
use Laminas\HttpHandlerRunner\Emitter\EmitterInterface;
use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface; use Psr\Http\Message\ServerRequestInterface;
use Zend\HttpHandlerRunner\Emitter\EmitterInterface;
/** /**
* Runs an application invoking all the PSR7 middleware and the registered appli cation. * Runs an application invoking all the PSR7 middleware and the registered appli cation.
*/ */
class Server implements EventDispatcherInterface class Server implements EventDispatcherInterface
{ {
use EventDispatcherTrait; use EventDispatcherTrait;
/** /**
* @var \Cake\Core\HttpApplicationInterface * @var \Cake\Core\HttpApplicationInterface
skipping to change at line 121 skipping to change at line 121
if ($this->app instanceof PluginApplicationInterface) { if ($this->app instanceof PluginApplicationInterface) {
$this->app->pluginBootstrap(); $this->app->pluginBootstrap();
} }
} }
/** /**
* Emit the response using the PHP SAPI. * Emit the response using the PHP SAPI.
* *
* @param \Psr\Http\Message\ResponseInterface $response The response to emit * @param \Psr\Http\Message\ResponseInterface $response The response to emit
* @param \Zend\HttpHandlerRunner\Emitter\EmitterInterface|null $emitter The emitter to use. * @param \Laminas\HttpHandlerRunner\Emitter\EmitterInterface|null $emitter The emitter to use.
* When null, a SAPI Stream Emitter will be used. * When null, a SAPI Stream Emitter will be used.
* @return void * @return void
*/ */
public function emit(ResponseInterface $response, ?EmitterInterface $emitter = null): void public function emit(ResponseInterface $response, ?EmitterInterface $emitter = null): void
{ {
if (!$emitter) { if (!$emitter) {
$emitter = new ResponseEmitter(); $emitter = new ResponseEmitter();
} }
$emitter->emit($response); $emitter->emit($response);
} }
 End of changes. 3 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)