Skip to content

v1.5.0

Latest
Compare
Choose a tag to compare
@muhajirinlpu muhajirinlpu released this 07 May 08:50
· 1 commit to master since this release
e2197a1

New Features

  • Auto-injection of Controllers via Configuration
    • Description: This feature allows users to specify directories to scan for controllers, with keys corresponding to route groups (e.g., 'web', 'api') and values as arrays of directory paths. It simplifies controller integration into the routing system, reducing manual configuration.
    • GenerateCommand: A new command-line tool, GenerateCommand, automates the scanning and injection of controllers, enhancing developer productivity.
    • Configuration Details: The feature is configured in the config/routes.php file, where a new 'injects' key is introduced (e.g., 'injects' => ['web' => [], 'api' => []]).
    • Impact: This feature streamlines routing in Laravel applications, making yalr more efficient for developers managing complex routing setups.

Updates and Fixes

Beyond the new feature, several updates and fixes were implemented:

  • Testing Improvements:

    • Upgraded phpunit and workbench to enhance testing capabilities and ensure compatibility with modern testing standards.
  • Route Handling:

    • Introduced a tokenizer for processing new route files, likely improving the efficiency or flexibility of route management.
  • Compatibility:

    • Dropped support for PHP 8.2, aligning yalr with newer PHP versions and simplifying maintenance.
  • Dependency Updates:

    • Updated the codecov/codecov-action from version 4 to 5
  • Test Suite Cleanup:

    • Removed an obsolete test, streamlining the test suite.
  • Documentation:

    • Updated readme.md, to make document the new feature, clarify usage, or reflect other changes.

Full Changelog: v1.4.0...v1.5.0