3.4.2 Basic json API, environment vars + clean-up & fixes
Main changes are summarized in CHANGELOG.md
[3.4.2] - 2024-08-24 Additional code clean-up + fixes
Changed
- Move identification of run mode to settings instead of container definition
- Pass auth and session as request attribute instead of using container
- Use gatekeeper middleware instead of wrapped check_admin() action
- Align uri methods with symfony http foundation helpers
- Revise middleware vs container setup for bbs and calibre configuration
- Add CORS options route and Allow-Control-* headers for json response
- Use FilesystemAdapter as fallback of ApcuAdapter for cache - see issue #3
[3.4.0] - 2024-04-26 Basic json API + environment vars + clean-up
Added
- Enable basic json api interface by configuring $settings['hasapi'] = true;
- Make $settings['hasapi'] configurable via environment variable 'BBS_HAS_API'
- Make initial app name configurable via environment variable 'BBS_APP_NAME'
- Make base path configurable via environment variable 'BBS_BASE_PATH'
- Make debug mode configurable via environment variable 'BBS_DEBUG_MODE'
Changed
- Move default settings to Settings class + use properties to access
- Split config/config.php file based on configuration mode
- Move identification of current language + loading L10n to login middleware
- Split config/langs.php file into lang/messages.{lang}.php files for L10n
- Rename most source class files + adapt RedBeanPHP models in line with PSR-4
Full Changelog: v3.3.0...v3.4.2