Repository navigation
🚀 Quantum PHP 3.1.2 Released #686
armanist
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Quantum PHP 3.1.2 is out. It brings typed readers for
.envand config values, apatch()route method, and makescacheable()on routes work again. Nothing is removed, but a few behaviors change, so please read the note below before you update.Website: https://quantumphp.io/
Docs on GitBook: https://quantumphp.gitbook.io/docs
Docs on Read the Docs: https://quantum-php-framework.readthedocs.io/en/latest/
Release notes: https://github.com/quantum-php/framework/releases/tag/3.1.2
Full changelog: https://github.com/quantum-php/framework/blob/master/CHANGELOG.md
Upgrade guide: https://quantumphp.io/v3.0/upgrade-guide
view_cache.ttl,mailer.transport_log_limit,lang.url_segmentandlogging.message.limitnow throw aConfigExceptionfor text likeabc, where it used to become0. A setting set tonullnow gets its default.cacheable()takes effect. It had no effect since 3.0. If your routes call it, those pages are now cached (or not) as they say, whateverresource_cacheis.Setupis deprecated and will be removed in 3.2.0. Passing it, or callingsetHierarchy(), logs a deprecation warning.LocalFileSystemAdapter::glob()must declarearray|false.The upgrade guide has the details (items 12 to 15).
✨ What's new
✅ Typed
.envand config values.envvalues are text, soDEBng'false'.env_bool()andenv_int()read.envas a reonfig()->getBool()andconfig()->getInt()do the same for config values. A typo such asabcin a number now shows up at once instead of silently becoming0.✅
patch()routes$route->patch(...)declares a),post(),put()anddelete()`.✅ Per-route caching works again
->cacheable(true, 60)caches en caching is off globally, and->cacheable(false)keeps a page out of the cache.✅ Fixes and cleanup
t()callEnvironment,Configand the cURL adapter are split into smaller parts, with no change in behavior✅ Better docs
The upgrade guide covers 3.1.2,es and per-route caching.
🚀 Starter project
quantum/project3.1.2 is releeal booleans and integers, andits translations are split by topic. If you copy the new config into an existing project, setMAIL_PORTin.envto a number.Thank you to everyone using, testing and contributing to Quantum PHP.
All reactions