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

Releases

zend-expressive-swoole 2.5.0

Choose a tag to compare

@michalbundyra michalbundyra released this 22 Nov 16:31
2.5.0
6a6982c

Added

  • #73 adds compatibility with symfony/console ^5.0.

Changed

  • Nothing.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • Nothing.

zend-expressive-swoole 2.4.1

Choose a tag to compare

@weierophinney weierophinney released this 13 Nov 19:54
2.4.1

Added

  • Nothing.

Changed

  • Nothing.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • #67 fixes the HttpServerFactory to properly support Swoole coroutines.

zend-expressive-swoole 2.4.0

Choose a tag to compare

@weierophinney weierophinney released this 05 Mar 18:07

Added

  • #64 updates the hot reloading feature so that it logs messages using the same
    logger configured for access logging.

Changed

  • Nothing.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • Nothing.

zend-expressive-swoole 2.3.0

Choose a tag to compare

@weierophinney weierophinney released this 07 Feb 23:30

Added

  • #60 adds a new configuration, zend-expressive-swoole.hot-code-reload.
    Configuring hot-code-reload allows the Swoole HTTP server to monitor for
    changes in included PHP files, and reload accordingly.

Changed

  • Nothing.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • Nothing.

zend-expressive-swoole 2.2.1

Choose a tag to compare

@weierophinney weierophinney released this 07 Feb 22:50

Added

  • #56 adds support for PHP 7.3.

Changed

  • Nothing.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • Nothing.

zend-expressive-swoole 2.2.0

Choose a tag to compare

@weierophinney weierophinney released this 03 Dec 16:30

Added

  • #55 adds a new configuration key, zend-expressive-swoole.swoole-http-server.logger.logger-name.
    It allows a custom service name which resolves to a Psr\Log\LoggerInterface
    instance to be provided, in order to be wrapped in the
    Zend\Expressive\Swoole\Log\Psr3AccessLogDecorator:

    return [
        'zend-expressive-swoole' => [
            'swoole-http-server' => [
                'logger' => [
                    'logger-name' => 'my_logger',
                ],
            ],
        ],
    ];

Changed

  • Nothing.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • Nothing.

zend-expressive-swoole 2.1.0

Choose a tag to compare

@weierophinney weierophinney released this 28 Nov 21:40

Added

  • #54 adds a new configuration key, zend-expressive-swoole.swoole-http-server.process-name.
    This value will be used as a prefix for the process name of all processes
    created by the Swoole\Http\Server instance, including the master process,
    worker processes, and all task worker processes. The value defaults to
    expressive. As an example:

    return [
        'zend-expressive-swoole' => [
            'swoole-http-server' => [
                'process-name' => 'myapp',
            ],
        ],
    ];
  • #50 adds a new configuration flag for toggling serving of static files:
    zend-expressive-swoole.swoole-http-server.static-files.enable. The flag is
    enabled by default; set it to boolean false to disable static file serving:

    return [
        'zend-expressive-swoole' => [
            'swoole-http-server' => [
                'static-files' => [
                    'enable' => false,
                ],
            ],
        ],
    ];

Changed

  • Nothing.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • Nothing.

zend-expressive-swoole 2.0.1

Choose a tag to compare

@weierophinney weierophinney released this 28 Nov 18:39

Added

  • Nothing.

Changed

  • Nothing.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • #48 adds a shutdown handler to the Swoole HTTP server that clears the PID
    manager, ensuring the PID file is cleared.

  • #52 fixes an error thrown by the start command when using this component in
    configuration-driven expressive applications, due to the fact that the command
    always tried to require the config/pipeline.php and config/routes.php
    files.

zend-expressive-swoole 2.0.0

Choose a tag to compare

@weierophinney weierophinney released this 15 Nov 20:29

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.

zend-expressive-swoole 1.0.2

Choose a tag to compare

@weierophinney weierophinney released this 13 Nov 15:51

Added

  • Nothing.

Changed

  • Nothing.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • #45 provides a patch that ensures that SSL support can be enabled when
    creating the Swoole\Http\Server instance. SSL support requires not just the
    SSL certificate and private key, but also providing a protocol of either
    SWOOLE_SOCK_TCP | SWOOLE_SSL or SWOOLE_SOCK_TCP6 | SWOOLE_SSL.
    Previously, the union types would raise an exception during instantiation.