CakePHP 3.3.1 发布了,这是 3.3 分支的维护版本,修复了一些社区反应的问题。更新如下:
Bugfixes
点击这里查看查看每个提交的更新日志
AssetFilter
now interacts properly with PSR7 based applications.Cookie decryption when using the PSR7 stack now works properly.
Regressions around marshalling associated data have been fixed.
All associations now marshall correctly when TranslateBehavior is enabled.
BelongsToMany
_joinData
records with complex properties now hydrate correctly again when loaded with find().Request::is()
no longer caches results. This fixes an issue where parameterized detectors would return cached results when parameters are different.CakeEmail::deliver()
correctly usesdefault
as the default transport configuration instead of 'fast'.MiddlewareStack::insertAt()
behaves correctly when adding non-Closure based middleware.Dispatcher filters are not doubly invoked when an application uses the PSR7 HTTP stack and dispatcher filters.
CrossSchemaTableExpression
and automatic cross database join prefixing has been removed. This was a new feature in 3.3.0 that caused regressions for a number of folks. Removing the problematic feature feels like a better solution over trying to patch issues as they come up.Session cookie rotation works correctly, when setting custom cookies, and using the PSR7 HTTP stack.
Minor Enhancements
Cake\ORM\SaveOptionsBuilder
was added. This class provides a builder interface for building option sets for save operations. By using a fluent interface you can reduce the number of errors made.Exceptions are now raised when duplicate named routes are connected.