Repository navigation
3.4.6
Full Changelog: 3.4.5...3.4.6
New Features
-
Route Attribute Class:
Introduced new properties for defining middleware in both CLI and HTTP routing, enhancing flexibility and control. -
Global
STATUS_SILENT:
Added a new status constant,STATUS_SILENT, for use in HTTP routable controller methods. This helps avoid "view not found" errors when errors are handled internally, replacing the use ofSTATUS_ERRORas needed.
Optimizations
-
Global Helper Functions:
Refactored and optimized logic across various helper functions for improved performance and reliability. -
Routable Controller Methods:
Enhanced the routing system to enforce stricter type-hinting. An exception is now thrown if a controller method does not explicitly declare anintreturn type, ensuring better type safety.
Deprecations
- CLI Middleware Routing:
Thebeforemethod in CLI middleware routing has been deprecated in favor of theguardmethod, offering a clearer and more intuitive approach.
Removals
- Abstract Base View Controller:
TheLuminova\Base\BaseViewControllerclass has been removed after being deprecated. Replace it withLuminova\Base\BaseControllerto ensure compatibility with the latest updates.
Bug Fixes
- Controller Method Handling:
Fixed an issue where controller methods returningSTATUS_ERRORwould cause "error view not found" exceptions. With the introduction ofSTATUS_SILENT, such scenarios now indicate that no further actions are required, improving error-handling workflows.