New features
1. Added command aliases support to #[AsCommand]
The #[AsCommand] attribute now accepts an aliases parameter, allowing a console command to be registered and invoked under several names. The scaffolder was also updated to generate commands with aliases out of the box.
Example Usage:
use Spiral\Console\Attribute\AsCommand;
#[AsCommand(name: 'app:user:create', aliases: ['user:new', 'user:add'])]
final class CreateUserCommand extends Command
{
// ...
}Other
- [spiral/csrf] Fixed
CsrfMiddlewarecookie missing thePathattribute by adding a configurablepathoption (default/) by @roxblnfk in #1257 - [spiral/framework] Fixed
route:listcommand crash onLINK/UNLINKverbs by @gam6itko in #1254 - [spiral/pagination] Hardened
Paginatorlimit handling and documented the component by @gam6itko in #1255
Full Changelog: 3.16.2...3.17.0