Repository navigation
zend-expressive-swoole 2.0.0
Added
-
#46 adds a new command for the command line tooling,
status; the command
simply tells you if the server is running or not. -
#43 adds the class
Zend\Expressive\Swoole\WhoopsPrettyPageHandlerDelegator,
and registers it to the serviceZend\Expressive\WhoopsPageHandler. The
delegator callshandleUnconditionally()on the handler in order to ensure it
will operate under the CLI SAPI that Swoole runs under. -
#40 adds the class
Zend\Expressive\Swoole\HttpServerFactory, which
generates aSwoole\Http\Serverinstance based on provided configuration; it
replaces the formerZend\Expressive\Swoole\ServerFactory(as well as the
factory for that class). The new factory class is now registered as a factory
for theSwoole\Http\Serverclass, which allows users to further configure
the Swoole server instance via delegators, specifically for the purpose of
enabling async task workers.
Changed
-
#46 moves the command line utilities for controlling the web server out of
the application runner, and into a new vendor binary,zend-expressive-swoole
(called via./vendor/bin/zend-expressive-swoole). This change was required
to allow us to expose theSwoole\Http\Serverinstance as a service, and has
the added benefit thatreloadoperations now will fully stop and start the
server, allowing it to pick up configuration and code changes. You will need
to update any deployment scripts to use the new vendor binary. -
#40 changes how you configure Swoole's coroutine support. Previously, you
would toggle the configuration flagzend-expressive-swoole.swoole-http-server.options.enable_coroutine;
you should now use the flagzend-expressive-swoole.enable_coroutine. The
original flag still exists, but is now used to toggle coroutine support in the
Swoole\Http\Serverinstance specifically. -
#42 adds a discrete factory service for the
SwooleRequestHandlerRunner, and now aliases
Zend\HttpHandlerRunner\RequestHandlerRunnerto that service.
Deprecated
- Nothing.
Removed
- #40 removes the
Zend\Expressive\Swoole\ServerFactoryand
ServerFactoryFactoryclasses, as well as theZend\Expressive\Swoole\ServerFactory
service. Users should instead reference theSwoole\Http\Serverservice,
which is now registered via theZend\Expressive\Swoole\HttpServerFactory
factory, detailed in the "Added" section above.
Fixed
- Nothing.