Update dependency mezzio/mezzio-laminasviewrenderer to v3 #216
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^2.19.0->^3.0.0Release Notes
mezzio/mezzio-laminasviewrenderer (mezzio/mezzio-laminasviewrenderer)
v3.0.0Compare Source
Release Notes for 3.0.0
Version 3.0.0 contains a number of BC breaks:
laminas-view:3.x#74laminas-viewhas been upgraded to version 3 which itself comes with significant BC breaks.Helper usage has changed for many of the shipped plugins, some are removed etc.
Consult the migration guide for more detailed information.
mezzio-template:3.xMore detail can be found in the release notes.
It is unlikely that updating to
mezzio-templatev3 will cause any problems, unless you were manipulating the template "paths" viaTemplateRenderer::addPath().Other BC Breaks
laminas-view): #19Zend\Expressive\…equivalents #27finalwhich will affect you if you were extending the shipped renderer, the template resolver, or any of the shipped helpers.Configuration changes
Shipped configuration no longer configures a "default layout" under
templates.layout. The value used to be'layout::default', so you will need to re-introduce this in your own configuration:Improvements
The namespaced path stack resolver will now load template paths from configuration under
$config['templates']['paths'], so if you had a delegator doing this, it is no longer necessary.All factories now work as expected when an iterable/ArrayObject is used for configuration instead of a regular array.
Overall performance improvements have been noted in the region of a 10% speed increase (Likely due to changes in
laminas-viewv3), but there are no official benchmarks as of yet.Stateful helpers are now reset for each rendering cycle, meaning that using laminas view in cli processes such as RoadRunner, Swoole and Franken PHP is safer, providing your stateful custom view helpers implement the correct interface. More information
3.0.0
QA
BC Break,Bug,Enhancement
Documentation
Enhancement,QA
configwhen it's aniterablethanks to @gsteelBC Break,Documentation
Dependencies
BC Break,Dependencies,Enhancement
laminas-viewto version 3.x thanks to @gsteelBC Break,Enhancement
finalkeyword and remove unused exception class thanks to @gsteelNamespacedPathStackResolvercannot inherit fromTemplatePathStackthanks to @gsteelEnhancement
psr/container:^2.0thanks to @pascalheidmannBug,Enhancement
49: Merge release 2.14.0 into 3.0.x thanks to @github-actions[bot]
21: Merge 2.6.0 into 3.0.x thanks to @Ocramius
37: Merge release 2.11.0 into 3.0.x thanks to @github-actions[bot]
Bug,Duplicate,Enhancement
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
Read more information about the use of Renovate Bot within Laminas.