Skip to content
This repository was archived by the owner on Sep 22, 2024. It is now read-only.

Commit 9d0c83a

Browse files
committed
fix: use app property
1 parent 9b79e70 commit 9d0c83a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/SchedulingTasksServiceProvider.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

src/TaskLoader.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)