All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Replace
LocaleMiddleware
withServerRequestMiddleware
. A new class,RequestContainer
, can be injected or retrieved from the container to get the server request. It will benull
if the request is not defined (called before it is injected into the container by Middleware or if there's no request, e.g., a Bakery command).
- Fix #1264 - The browser locale is not applied automatically
- Fix issue with sprunje using multiple listable fetched from database (Chat Reference)
- Drop PHP 8.1 support, add PHP 8.3 support
- Update to Laravel 10
- Update to PHPUnit 10
- Update to Monolog 3
- Test against MariaDB #1238
- The different loggers now implement their own interface
- Change sprunje type-hinting, fixing issue with some many-to-many relations
- New Twig function :
config
- Use our own RouterParser, wrapped around Slim's RouteParser. Allows to add 'fallback' routes when names routes are not found.
- Rework assets building command. This change allows new bakery command to update Npm assets, and eventually allows sprinkles to replace webpack with something else (eg. Vite). The new commands are :
assets:install
: Alias fornpm install
.assets:update
: Alias fornpm update
.assets:webpack
: Alias fornpm run dev
,npm run build
andnpm run watch
, each used to run Webpack Encore.assets:build
: Aggregator command for building assets. Includes by defaultassets:install
andassets:webpack
. Sub commands can be added toassets:build
by listening toAssetsBuildCommandEvent
.- The old
webpack
andbuild-assets
command are still available, and now aliasassets:build
.bake
also usesassets:build
now.
- New Bakery commands :
serve
&debug:twig
- Add env for public URI, default back to empty string
- Reenable CSRF protection for all routes.
- Update
DebugCommand
: Split command into multiple subcommand and useDebugCommandEvent
andDebugVerboseCommandEvent
so custom command can be added to the debug command, like thebake
command. - Add
build-assets
as alias towebpack
command for legacy purpose.
- Update for PHP-DI 7
- Reenable clear-cache bakery command & route caching
- Added
AbstractInjector
Middleware.
- [Exceptions]
SprunjeException
now extendsUserFacingException
. - [Exceptions]
UserFacingExceptionHandler
renamedUserMessageExceptionHandler
. - [Exceptions]
ValidationExceptionHandler
replaced removed (ValidationException
now handled byUserMessageExceptionHandler
). - [Exceptions]
UserMessageExceptionHandler
now add allUserMessageException
interface instead of onlyUserFacingException
class to alert stream and is used to handle allUserMessageException
instead ofUserFacingException
.
- [Exceptions] Added base
UserFacingException
andNotFoundException
.
- [Sprunje] Allow string for
size
andpage
option inapplyPagination
. Fix issue with Sprunje when$request->getQueryParams()
is passed directly as Sprunje options. - Fix Array Cache store for testing
- Add PHP 8.2 to test suite
- [Model] Fix
Call to a member function connection() on null
issue with model query builder when no ConnectionResolver was available due to Eloquent not being booted yet.