All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.
- Added PHP 8 support
- Upgraded the deprecated
zendframework/zend-diactoros
to the newlaminas/laminas-diactoros
package
- Add session garbage collection
- Improved log formatting
- Switched to the Statamic fork of
Stringy
to fully support PHP 7.4
- Support Middleware Aliases on Routes & Controllers
Helpers::logger()
(and globallogger()
) helper functions- Bound the
Logger
instance to the PSR-3 interfacePsr\Log\LoggerInterface
in the Container.
- Prevent Errors with a level of
E_USER_NOTICE
orE_USER_DEPRECATED
from being fatal.
- Macroable support to
QueryBuilder
- Add
first()
method toQueryBuilder
- Allow middleware to be added within a controller, including WordPress controllers
- Add
has()
method toConfig
- Ensure
get()
andfirst()
on theQueryBuilder
return consistent responses
- Macroable support to
Router
andPost
- Add Zend Diactoros as a direct package dependency
- Remove unused
use
statements across the codebase
- Add
runningInConsole()
function toApplication
- Add
mergeConfigFrom()
function toServiceProvider
- Add warning to log when no WP Controller is found
- Prevent duplicate headers being sent
- Add
Responsable
interface which can be used as a return object in Controllers or added to Exceptions and automatically handled by the application. - Add
Helpers
class with the following functionsapp()
,config()
,view()
,route()
&redirect()
. These can be added to the global namespace by including thesrc/functions.php
file.
- Add support for view models
- Initial release. Starting at v3 to keep inline with Lumberjack theme version