Releases: zendframework/zend-expressive-skeleton
Expressive Skeleton and Installer 3.0.1
Added
- Nothing.
Changed
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #242 updates the "container" links within the shipped home page templates to reference PSR-11 instead of container-interop.
Expressive Skeleton and Installer 3.0.0
Added
-
#161 adds support for Auryn to be used as a container via a wrapper.
-
#182 adds Symfony DI container support.
-
#212 adds the Composer script "expressive", which will invoke the "expressive" command from the zend-expressive-tooling package:
$ composer expressive help
-
#215 adds packages to the zend-component-installer whitelist to prevent prompts for configuration provider injection.
-
#224 adds notifications for whitelisted packages.
-
#238 adds links to documentation for the specific container installed to the shipped home page.
Changed
-
The skeleton now requires zend-expressive 3.0; for detailed changes, see the zend-expressive 3.0.0 changelog.
-
#212 makes the zend-expressive-tooling package an explicit development requirement; it is no longer an optional package.
-
#213 updates how the
routes.php
andpipeline.php
files are defined. They now return anonymous functions with the following signature:function ( Zend\Expressive\Application $app, Zend\Expressive\MiddlewareFactory $factory, Psr\Container\ContainerInterface $container ) : void
The
public/index.php
file now does the following:$app = $container->get(\Zend\Expressive\Application::class); $factory = $container->get(\Zend\Expressive\MiddlewareFactory::class); (require 'config/pipeline.php')($app, $factory, $container); (require 'config/routes.php')($app, $factory, $container);
This approach allows users to pull other dependencies as needed, without cluttering the global namespace, and to use the
MiddlewareFactory
features along with features such as theZend\Stratigility\path()
andhost()
utility methods. -
#214 renames the shipped "Action" namespace and classes to use the verbiage "Handler" (for consistency with PSR-15), and be implemented as PSR-15
RequestHandlerInterface
implementations. -
#197 updates
public/index.php
to removecall_user_func()
in favor of direct callable invocation (e.g.,(function () { /* ... */ })()
). -
#177 moves Aura.Di and Pimple container configuration to separate repositories.
-
#201 updates the default assets to Bootstrap 4, jQuery 3.3.1 and Font-Awesome 5.
-
#202, #205 uses ConfigProviders to setup components. To make sure all ConfigProviders are loaded you need to answer yes to all inject
Zend\<component>\ConfigProvider
questions or do this once and select for all other packages. -
#199 moves the location of the configuration cache from
data/config-cache.php
todata/cache/config-cache.php
. Since the shippedcomposer clear-config-cache
script and zf-development-mode both use the$config['config_cache_path']
setting to determine where the cache file lives, this should have no bearing on normal, documented usage. -
#219 updates templates such that all example assets (css, images, and javascript) are now loaded from remote urls.
-
#226 renames the factory class
App\Handler\HomePageFactory
toApp\Handler\HomePageHandlerFactory
to reflect the name of the class it generates. -
#231 simplifies how zend-servicemanager instances are generated, dropping v2 syntax in favor of a configuration-driven v3 syntax.
Deprecated
- Nothing.
Removed
-
#183 removes support for PHP versions prior to PHP 7.1.
-
The
zend-expressive.programmatic_pipeline
configuration flag is removed fromconfig/autoload/zend-expressive.global.php
, as it is no longer used anywhere.
Fixed
-
#216 updates the
composer serve command to read
php -S 0.0.0.0:8080 -t public/. This command has been tested to work across a variety of platforms, including Windows, macOS, and Linux. However, for Linux users, the command will fail on PHP versions prior to 7.1.14 and 7.2.2, due to a language bug. If you are using an affected PHP version, you will need to manually start the PHP built-in server using the comand
php -S 0.0.0.0:8080 -t public/ public/index.php`. -
#195 fixes unwanted installation of every dependency when installing a dev version of the skeleton.
-
#235 changes the order of pipeline middleware to place the entry for the
MethodNotAllowedMiddleware
after both theImplicitHeadMiddleware
andImplicitOptionsMiddleware
entries; this is done to ensure it does not intercept HEAD and OPTIONS requests when it should not. -
#237 adds an exclusion to
.gitignore
for the filedata/cache/.gitkeep
, ensuring the directory is checked in to new projects.
Expressive Skeleton and Installer 3.0.0rc4
This release contains a breaking change.
If you have created a skeleton based on a previous release candidate, please
update your config/pipeline.php
as described in the changes below.
Added
- Nothing.
Changed
-
#241 updates to zend-expressive 3.0.0rc5 and, by extension, zend-expresive-router 3.0.0rc5.
This requires one change to the
config/pipeline.php
file: instead of pipingZend\Expressive\Router\Middleware\PathBasedRoutingMiddleware
, it now pipesZend\Expressive\Router\Middleware\RouteMiddleware
. This is necessary as the former class no longer exists.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- Nothing.
zend-expressive-skeleton 3.0.0rc3
Added
- #238 adds links to documentation for the specific container installed to the shipped home page.
Changed
- This release updates the minimum supported version of zend-expressive to 3.0.0rc4.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #237 adds an exclusion to
.gitignore
for the filedata/cache/.gitkeep
, ensuring the directory is checked in to new projects.
Expressive Skeleton and Installer 2.2.0
Added
- Nothing.
Changed
-
#239 updates the minimum required version of zend-expressive to 2.2.0.
-
#239 updates the minimum required version of the various zend-expressive-router dependencies to 2.2.0.
-
#239 updates the configured middleware pipeline to match requirements of the zend-expressive 2.2 release.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- Nothing.
Expressive Skeleton and Installer 3.0.0rc2
Added
- Nothing.
Changed
- #235 updates to zend-expressive 3.0.0rc3 and zend-expressive-router 3.0.0rc4, as well as the latest release candidates for the various router adapters.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #235 changes the order of pipeline middleware to place the entry for the
MethodNotAllowedMiddleware
after both theImplicitHeadMiddleware
andImplicitOptionsMiddleware
entries; this is done to ensure it does not intercept HEAD and OPTIONS requests when it should not.
Expressive Skeleton and Installer 3.0.0rc1
Added
- #224 adds notifications for whitelisted packages.
Changed
-
The skeleton now requires zend-expressive 3.0.0rc1. For detailed changes, see the zend-expressive 3.0.0alpha6, zend-expressive 3.0.0alpha7, zend-expressive 3.0.0alpha8, zend-expressive 3.0.0alpha9, and zend-expressive 3.0.0rc1 changelogs.
-
#219 updates templates such that all example assets (css, images, and javascript) are now loaded from remote urls.
-
#226 renames the factory class
App\Handler\HomePageFactory
toApp\Handler\HomePageHandlerFactory
to reflect the name of the class it generates. -
#231 simplifies how zend-servicemanager instances are generated, dropping v2 syntax in favor of a configuration-driven v3 syntax.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
-
#221 adds missing array return type to the shipped
ConfigProvider
classes. -
#224 fixes unwanted removal of whitelisted packages.
-
#232 updates dependency constraints to latest released versions, and ensures that when alpha versions are specified, only that version forward will be installed (previously, an earlier alpha could potentially be installed when using
--prefer-lowest
).
Expressive Skeleton and Installer 3.0.0alpha3
Added
- #215 adds packages to the zend-component-installer whitelist to prevent prompts for configuration provider injection.
Changed
- #199 moves the location of the configuration cache from
data/config-cache.php
todata/cache/config-cache.php
. Since the shippedcomposer clear-config-cache
script and zf-development-mode both use the$config['config_cache_path']
setting to determine where the cache file lives, this should have no bearing on normal, documented usage.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
-
#216 updates the
composer serve
command to readphp -S 0.0.0.0:8080 -t public/
. This command has been tested to work across a variety of platforms, including Windows, macOS, and Linux. However, for Linux users, the command will fail on PHP versions prior to 7.1.14 and 7.2.2, due to a language bug. If you are using an affected PHP version, you will need to manually start the PHP built-in server using the comandphp -S 0.0.0.0:8080 -t public/ public/index.php
. -
#217 fixes a syntax error in the shipped
config/pipeline.php
.
Expressive Skeleton and Installer 3.0.0alpha2
Added
-
#212 adds the Composer script "expressive", which will invoke the "expressive" command from the zend-expressive-tooling package:
$ composer expressive help
Changed
-
#212 makes the zend-expressive-tooling package an explicit development requirement; it is no longer an optional package.
-
#213 updates how the
routes.php
andpipeline.php
files are defined. They now return anonymous functions with the following signature:function ( Zend\Expressive\Application $app, Zend\Expressive\MiddlewareFactory $factory, Psr\Container\ContainerInterface $container ) : void
The
public/index.php
file now does the following:$app = $container->get(\Zend\Expressive\Application::class); $factory = $container->get(\Zend\Expressive\MiddlewareFactory::class); (require 'config/pipeline.php')($app, $factory, $container); (require 'config/routes.php')($app, $factory, $container);
This approach allows users to pull other dependencies as needed, without cluttering the global namespace, and to use the
MiddlewareFactory
features along with features such as theZend\Stratigility\path()
andhost()
utility methods. -
#214 renames the shipped "Action" namespace and classes to use the verbiage "Handler" (for consistency with PSR-15), and be implemented as PSR-15
RequestHandlerInterface
implementations.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- Nothing.
Expressive Skeleton and Installer 3.0.0alpha1
This is a pre-release; do not use in production!
Added
-
#161 adds support for Auryn to be used as a container via a wrapper.
-
#182 adds Symfony DI container support.
Changed
-
#197 updates
public/index.php
to removecall_user_func()
in favor of direct callable invocation (e.g.,(function () { /* ... */ })()
). -
#177 moves Aura.Di and Pimple container configuration to separate repositories.
-
#201 updates the default assets to Bootstrap 4, jQuery 3.3.1 and Font-Awesome 5.
-
#202, #205 uses ConfigProviders to setup components. To make sure all ConfigProviders are loaded you need to answer yes to all inject
Zend\<component>\ConfigProvider
questions or do this once and select for all other packages.
Deprecated
- Nothing.
Removed
- #183 removes support for PHP versions prior to PHP 7.1.
Fixed
- #195 fixes unwanted installation of every dependency when installing a dev version of the skeleton.