Same, but better
This release has lots of small improvements based on 6 months of heavy production use since v1.0. Most of it you won't notice, but here's the stuff you probably care about. Keep in mind that this is a major version release, with breaking changes. Most notably the removal of the SuppressionMiddleware as the middleware that was added by default.
Added
- Documentation on nesting presentation models and the
optionaltag. - An
Installerclass which sets up Shoot for an instance of Twig.
Changed
- Shoot now requires PHP 7.2.
- The Twig dependency has been bumped to v2.6.
- PHPUnit has been bumped to v8.0, and all tests have been updated accordingly.
- The
SuppressionMiddlewareis no longer enabled by the default. You'll have to pass it to thePipelineconstructor along with any other middleware you use. - The
LoggingMiddlewarenow also logs errors. Kind of odd it did not do that before.
Fixed
- The optional tag would still output any contents from before the exception was thrown. This is now fixed.
- Models now work as expected when using extends, embed and blocks – removing what was previously a limitation of Shoot.