Skip to content

Make scheduler registration configurable#22

Merged
mchev merged 1 commit into
2.xfrom
scheduler
Jan 4, 2026
Merged

Make scheduler registration configurable#22
mchev merged 1 commit into
2.xfrom
scheduler

Conversation

@mchev

@mchev mchev commented Jan 4, 2026

Copy link
Copy Markdown
Owner

Summary

Adds configuration options to control the automatic scheduler registration for the banhammer:unban command, addressing issue #20.

Backward Compatibility

Non-breaking change - Default behavior remains identical:

  • Scheduler is enabled by default
  • Runs every minute by default
  • No configuration required for existing applications

Configuration

Users can now configure via config/ban.php or environment variables:
'scheduler_enabled' => env('BANHAMMER_SCHEDULER_ENABLED', true),
'scheduler_periodicity' => env('BANHAMMER_SCHEDULER_PERIODICITY', 'everyMinute'),## Testing

Closes #20

@mchev mchev self-assigned this Jan 4, 2026
@mchev mchev merged commit eeb650c into 2.x Jan 4, 2026
25 checks passed
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.

why the pkg auto register a schedule cmnd ?

1 participant