Skip to content

feat: generate #[Async] actions with pollora:make:action --async - #431

Merged
ogorzalka merged 1 commit into
developfrom
feat/make-action-async
Oct 7, 2026
Merged

ogorzalka merged 1 commit into
developfrom
feat/make-action-async

Conversation

@ogorzalka

Copy link
Copy Markdown
Member

Phase 4 of Async Actions, step 3: pollora:make:action --async generates the method with #[Async] and its import, both in a new class and when the method is added to an existing class.

Two generator fixes found while testing:

  • pollora:make:action and pollora:make:filter were registered under the names pollora:make:action {name} and pollora:make:filter {name}. The console reached them by prefix match, but Artisan::call('pollora:make:action') failed with "command does not exist".
  • For a hook with separators, the generated method was named handleSavepost (from save_post). It is now handleSavePost.

Tests: ActionMakeCommandTest (3), the first tests for this generator. 1897 tests pass, PHPStan clean.

@ogorzalka
ogorzalka force-pushed the feat/make-action-async branch from 996ecdd to 72012af Compare October 7, 2026 17:25
@ogorzalka
ogorzalka merged commit f724590 into develop Oct 7, 2026
11 checks passed
@ogorzalka ogorzalka mentioned this pull request Oct 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant