demo
demo copied to clipboard
Attribute routes example
In development I just run the worker in console php watcher.php and it rebuild the attributes map as fast as possible:

Related: https://github.com/yiisoft/router/pull/194
PR Summary
- 🔧 Code Formatting Improvement Adjusted formatting in the application.php file
- 📚 Documentation Update Added @OA\Schema reference for better API documentation
- 🏗️ New Watcher Build Scripts Implemented watcher-build.php and watcher.php
- 🛣️ Route Configuration Enhancement Changed route creation in config/common/routes/routes.php to use attributes
- 🏷️ Attribute Annotations Added Included attribute annotations for SiteController, ApiUserController, and Actions\ApiInfo classes
Nice. That should at least go into cookbook.