Repository navigation
3.4.9
Full Changelog: 3.4.6...3.4.9
Added New
-
Abstract Base Controller: Added method
onMiddlewareFailureto handle middleware failures. This allows for presenting an error message or rendering a view when middleware authentication fails. -
TOTP Authenticator: Introduced the
Luminova\Security\TOTPclass to handle Time-Based One-Time Password (TOTP) authentication, enhancing security workflows. -
TOTP Authenticator Client: Added the
Luminova\Security\Authenticator\Googleclass. This Google Authenticator client implementsLuminova\Interface\AuthenticatorInterface, enabling easy integration with theLuminova\Security\TOTPclass for TOTP-based authentication. -
Clear Writable Command: Added
novakithelper commands (clear:writable,clear:caches,clear:routes,clear:storage, andclear:temp) to simplify file and folder clearing operations within the writable directory. For example, usephp novakit clear:cachesto clear caches efficiently. -
System Logger Configuration: Introduced a new static method,
getEmailLogTemplate, in theApp\Config\Loggerclass, allowing users to customize log email templates to meet their specific requirements. -
Performance Profiling: Introduced configuration variable
debug.api.performance.profilingfor controlling where API profiling should be logged or ignored (default:false).
Optimizations
-
Application Logger Helper: Improved logger performance and clarity by changing log methods signature to
static(e.g.,Logger::error(...),Logger::info(...)). Added two new methods for explicitly sending log to email or remote without relying on thedispatchmethod:remote: For sending logs to a remote server.mail: For dispatching logs via email.
Additionally, email templates are now fully customizable.
-
NovaLogger Default Logging System: Improved logger performance and introduced methods
setName,setMaxLogSizeandsetAutoBackupfor overriding logging configuration. Also improved logging of API profiling data formetricslog level. -
General Enhancements: Ensured compatibility with new features across the framework, maintaining backward compatibility while optimizing for better performance.
-
Coding Standard Fixer: Updated Luminova's coding standards for best PHP practices. Run
composer cs-fixto apply fixes.
Changes
- Application Logger: Updated the
dispatchmethod to a static signature for improved consistency and ease of use. Now, only critical log levels are sent to email or a remote server unless an email address or URL is explicitly provided.