Skip to content

3.4.6

Choose a tag to compare

@peterujah peterujah released this 14 Jan 05:25
· 67 commits to main since this release

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 of STATUS_ERROR as 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 an int return type, ensuring better type safety.


Deprecations

  • CLI Middleware Routing:
    The before method in CLI middleware routing has been deprecated in favor of the guard method, offering a clearer and more intuitive approach.

Removals

  • Abstract Base View Controller:
    The Luminova\Base\BaseViewController class has been removed after being deprecated. Replace it with Luminova\Base\BaseController to ensure compatibility with the latest updates.

Bug Fixes

  • Controller Method Handling:
    Fixed an issue where controller methods returning STATUS_ERROR would cause "error view not found" exceptions. With the introduction of STATUS_SILENT, such scenarios now indicate that no further actions are required, improving error-handling workflows.