This repository was archived by the owner on Sep 22, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ class SchedulingTasksServiceProvider extends ServiceProvider
1414 */
1515 public function boot ()
1616 {
17- if ($ this ->container ->runningInConsole ()) {
17+ if ($ this ->app ->runningInConsole ()) {
1818 $ this ->commands ([
1919 TaskMakeCommand::class,
2020 ]);
@@ -28,10 +28,10 @@ public function boot()
2828 */
2929 public function register ()
3030 {
31- $ this ->container ->singleton (TaskLoader::class, function ($ app ) {
31+ $ this ->app ->singleton (TaskLoader::class, function ($ app ) {
3232 return new TaskLoader ($ app );
3333 });
3434
35- $ this ->container ->alias (TaskLoader::class, 'task-loader ' );
35+ $ this ->app ->alias (TaskLoader::class, 'task-loader ' );
3636 }
3737}
Original file line number Diff line number Diff line change @@ -14,14 +14,14 @@ class TaskLoader
1414
1515 public function __construct (Application $ app )
1616 {
17- $ this ->container = $ app ;
17+ $ this ->app = $ app ;
1818 }
1919
2020 public function loadFor (Schedule $ schedule , array $ exclude = [])
2121 {
22- $ namespace = $ this ->container ->getNamespace ();
22+ $ namespace = $ this ->app ->getNamespace ();
2323
24- $ path = $ this ->container ->path ('Console/Tasks ' );
24+ $ path = $ this ->app ->path ('Console/Tasks ' );
2525
2626 if (! is_dir ($ path )) {
2727 return ;
You can’t perform that action at this time.
0 commit comments