Skip to content

3.17.0

Latest

Choose a tag to compare

@roxblnfk roxblnfk released this 03 Jun 10:15
· 21 commits to master since this release
3.17.0
015b3da

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
{
    // ...
}

by @gam6itko in #1252

Other

  • [spiral/csrf] Fixed CsrfMiddleware cookie missing the Path attribute by adding a configurable path option (default /) by @roxblnfk in #1257
  • [spiral/framework] Fixed route:list command crash on LINK/UNLINK verbs by @gam6itko in #1254
  • [spiral/pagination] Hardened Paginator limit handling and documented the component by @gam6itko in #1255

Full Changelog: 3.16.2...3.17.0