5.1.0-RC1
版本发布时间: 2024-05-21 11:35:13
cakephp/cakephp最新发布版本:5.1.0(2024-09-14 10:53:46)
The CakePHP core team is happy to announce the first release candidate for CakePHP 5.1.0. The 5.1 release includes several behavior changes to increase correctness and new features. The highlights of those include:
- Connection now creates unique read and write drivers if the keys
read
orwrite
are present in the config regardless of values. - FormHelper no longer generates
aria-required
attributes on input elements that also have therequired
attribute set. Thearia-required
attribute is redundant on these elements and generates HTML validation warnings. If you are usingaria-required
attribute in styling or scripting you'll need to update your application. - Adding associations with duplicate names will now raise exceptions. You can use
$table->associations()->has()
to conditionally define associations if required. - View cells now emit events around their actions
Cell.beforeAction
andCell.afterAction
. -
Validation::enum()
andValidator::enum()
were added. These validation methods simplify validating backed enum values. -
Validation::enumOnly()
andValidation::enumExcept()
were added to check for specific cases and further simplify validating backed enum values. -
Client
now emitsHttpClient.beforeSend
andHttpClient.afterSend
events when requests are sent. You can use these events to perform logging, caching or collect telemetry. -
Http\Server::terminate()
was added. This method triggers theServer.terminate
event which can be used to run logic after the response has been sent in fastcgi environments. In other environments theServer.terminate
event runs before the response has been sent.
What's new in 5.1.0
The migration guide has a complete list of what's new in 5.1.0. We recommend you give that page a read when upgrading as it notes the behavior changes present in 5.1.0.
How you Can Help
You can help deliver 5.1.0 by contributing in one of many ways:
- Check the documentation for mistakes, outdated, unclear or broken examples. We've been trying to update the documentation as we go, but there are likely examples or sections we've missed.
- Try it out! Give CakePHP 5.1.0 a test drive. Let us know how upgrading went and if there were any rough spots.
- File issues for regressions in existing features, or suggest new features. Even if those features don't make it into 5.1.0, we're early in the process of planning 5.2 and value community feedback.
Contributors to 5.1.0-RC1
Thank you to all the contributors that have contributed to this release:
-
Adam Halfar
-
ADmad
-
Fernando Herrero
-
Frank de Graaf (Phally)
-
J.Brabec
-
Jozef Grencik
-
Kevin Pfeifer
-
KrzysiekNDS
-
Mark Scherer
-
Mark Story
-
Maximilian Ruta
-
ndm2
-
othercorey
-
Robert Pustułka
As always, a huge thanks to all the community members that helped make this release happen by reporting issues and sending pull requests.
1、 cakephp-5-1-0-RC1.zip 10.65MB