CakePHP v4.0.0-RC1 Release Notes
Release Date: 2019-11-16 // over 4 years ago-
π The CakePHP core team is happy to announce the immediate availability of CakePHP 4.0.0-RC1. This is the first release candidate for 4.0.0, and contains all the major features that are planned for 4.0.0. If no major issues are reported a stable release will be packaged in a few weeks.
β‘οΈ Updating to the RC
β¬οΈ You can use composer to upgrade to the beta version of CakePHP 4.0.0:
php composer.phar require --update-with-dependencies "cakephp/cakephp:4.0.0-RC1"
π We would greatly appreciate it if you temporarily upgraded your application, and ran your tests. By opening issues for any regressions in the release candidate, we can help ensure a smoother release of 4.0.0 before the stable release.
What's new in 4.0.0?
β¬οΈ The migration guide has a complete list of what's new in 4.0.0, and what has been deprecated. We recommend you give that page a read when upgrading.
π Changes since 4.0.0-beta4
- A new compact route
_path
format has been added toRouter::url()
. This new format accepts the sameController::action
format that route definition can use. - π¦ The
http
andconsole
libraries have had standalone packages created. - π» Development error pages now preserve inline code highlighting and newlines in exception messages.
- π
SecurityComponent
is now deprecated, and replaced by theFormProtectionComponent
. - π¦ The
ConsoleErrorHandler
was moved to theError
package. Validation::time()
now accepts microseconds.- π
SameSite
cookie support was added for PHP>7.3.0 - π New database types for
char
,datetimefractional
andtimestampfractional
were added. The new datetime types allow representation of time values including microseconds. InstanceConfigTrait::getConfigOrFail()
was added.- π New
isLinkedTo
andisNotLinkedTo
rules were added toORM\RulesChecker
. - 0οΈβ£
Date
andFrozenDate
objects now use the default timezone instead of UTC. This fixes problems where 'today' would not always be today depending on your distance from UTC. - π¨ Controller action dispatching was refactored to make adding a DI container in the future easier.
- π Routing prefixes are now PascalCased instead of under_scored. This removes some inflection and normalizes the representation of prefixes.
Contributors to 4.0.0-RC1
π We'd like to welcome othercorey to the core team. They have been contributed a number of documentation improvements and driven multiple improvements around how CakePHP handles microseconds across both CakePHP and Chronos.
π Thank you to all the contributors that helped make this release happen:
- ADmad
- Corey Taylor
- Edgaras JanuΕ‘auskas
- Jorge GonzΓ‘lez
- Karma Dice
- Mark Scherer
- Mark Story
- dan
- itosho
- ndm2
- othercorey
- saeideng
π As always, we would like to thank all the contributors that opened issues, created pull requests or updated the documentation.
- A new compact route