File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 88
99class Action
1010{
11- public function emit ()
11+ public function emit ($ poll = 10 )
1212 {
1313 if (! $ receiver = config ('scheduledaction.receiver ' )) return ;
1414
@@ -17,7 +17,7 @@ public function emit()
1717 $ callableReceiver = new $ receiver ;
1818 call_user_func (
1919 $ callableReceiver ,
20- $ this ->needsToRunToday ( config ( ' scheduledaction.actions_per_poll ' ) )
20+ $ this ->needsToRunToday ( $ poll )
2121 );
2222 }
2323
Original file line number Diff line number Diff line change 33namespace Devsrv \ScheduledAction ;
44
55use Illuminate \Support \ServiceProvider ;
6+ use Devsrv \ScheduledAction \Console \PollScheduledAction ;
67
78class ActionableServiceProvider extends ServiceProvider
89{
@@ -24,6 +25,10 @@ public function boot()
2425 $ this ->publishes ([
2526 __DIR__ .'/../config/config.php ' => config_path ('scheduledaction.php ' ),
2627 ], 'config ' );
28+
29+ $ this ->commands ([
30+ PollScheduledAction::class,
31+ ]);
2732 }
2833 }
2934
You can’t perform that action at this time.
0 commit comments