File tree 1 file changed +19
-0
lines changed 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change 13
13
14
14
namespace LaravelZero \Framework \Bootstrap ;
15
15
16
+ use Illuminate \Console \Scheduling \Schedule ;
17
+ use LaravelZero \Framework \Kernel as ConsoleKernel ;
16
18
use Illuminate \Foundation \Bootstrap \RegisterProviders as BaseRegisterProviders ;
17
19
use LaravelZero \Framework \Application ;
18
20
use LaravelZero \Framework \Components ;
@@ -78,6 +80,11 @@ public function bootstrap(Application $app): void
78
80
$ app ->make (BaseRegisterProviders::class)
79
81
->bootstrap ($ app );
80
82
83
+ /*
84
+ * Register the console schedule implementation.
85
+ */
86
+ $ this ->registerConsoleSchedule ($ app );
87
+
81
88
/*
82
89
* Then we register Laravel Zero available providers.
83
90
*/
@@ -95,4 +102,16 @@ function ($serviceProviderClass) use ($app) {
95
102
}
96
103
);
97
104
}
105
+
106
+
107
+ /**
108
+ * Register the console schedule implementation.
109
+ */
110
+ public function registerConsoleSchedule (Application $ app ): void
111
+ {
112
+ $ app ->singleton (Schedule::class, function ($ app ) {
113
+ return $ app ->make (ConsoleKernel::class)->resolveConsoleSchedule ();
114
+ });
115
+ }
116
+
98
117
}
You can’t perform that action at this time.
0 commit comments