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

zend-expressive-swoole 2.0.0

Choose a tag to compare

@weierophinney weierophinney released this 15 Nov 20:29
· 108 commits to master since this release

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 service Zend\Expressive\WhoopsPageHandler. The
    delegator calls handleUnconditionally() 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 a Swoole\Http\Server instance based on provided configuration; it
    replaces the former Zend\Expressive\Swoole\ServerFactory (as well as the
    factory for that class). The new factory class is now registered as a factory
    for the Swoole\Http\Server class, 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 the Swoole\Http\Server instance as a service, and has
    the added benefit that reload operations 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 flag zend-expressive-swoole.swoole-http-server.options.enable_coroutine;
    you should now use the flag zend-expressive-swoole.enable_coroutine. The
    original flag still exists, but is now used to toggle coroutine support in the
    Swoole\Http\Server instance specifically.

  • #42 adds a discrete factory service for the SwooleRequestHandlerRunner, and now aliases
    Zend\HttpHandlerRunner\RequestHandlerRunner to that service.

Deprecated

  • Nothing.

Removed

  • #40 removes the Zend\Expressive\Swoole\ServerFactory and
    ServerFactoryFactory classes, as well as the Zend\Expressive\Swoole\ServerFactory
    service. Users should instead reference the Swoole\Http\Server service,
    which is now registered via the Zend\Expressive\Swoole\HttpServerFactory
    factory, detailed in the "Added" section above.

Fixed

  • Nothing.