Skip to content

3.4.9

Choose a tag to compare

@peterujah peterujah released this 03 Feb 08:46
· 58 commits to main since this release

Full Changelog: 3.4.6...3.4.9

Added New

  • Abstract Base Controller: Added method onMiddlewareFailure to handle middleware failures. This allows for presenting an error message or rendering a view when middleware authentication fails.

  • TOTP Authenticator: Introduced the Luminova\Security\TOTP class to handle Time-Based One-Time Password (TOTP) authentication, enhancing security workflows.

  • TOTP Authenticator Client: Added the Luminova\Security\Authenticator\Google class. This Google Authenticator client implements Luminova\Interface\AuthenticatorInterface, enabling easy integration with the Luminova\Security\TOTP class for TOTP-based authentication.

  • Clear Writable Command: Added novakit helper commands (clear:writable, clear:caches, clear:routes, clear:storage, and clear:temp) to simplify file and folder clearing operations within the writable directory. For example, use php novakit clear:caches to clear caches efficiently.

  • System Logger Configuration: Introduced a new static method, getEmailLogTemplate, in the App\Config\Logger class, allowing users to customize log email templates to meet their specific requirements.

  • Performance Profiling: Introduced configuration variable debug.api.performance.profiling for 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 the dispatch method:

    • 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, setMaxLogSize and setAutoBackup for overriding logging configuration. Also improved logging of API profiling data for metrics log 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-fix to apply fixes.


Changes

  • Application Logger: Updated the dispatch method 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.