Skip to content

Commit

Permalink
Enable calling commands outside of console
Browse files Browse the repository at this point in the history
  • Loading branch information
tsekka committed Nov 3, 2022
1 parent a542daf commit 6621341
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/PrerenderServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ public function boot(): void
if ($this->app->runningInConsole()) {
$this->bootForConsole();
}

// Registering package commands.
$this->commands([
PruneCommand::class,
CachePagesCommand::class,
]);

$config = $this->app['config']->get('prerender');

Expand Down Expand Up @@ -80,11 +86,5 @@ protected function bootForConsole(): void
$this->publishes([
__DIR__ . '/../config/prerender.php' => config_path('prerender.php'),
], 'config');

// Registering package commands.
$this->commands([
PruneCommand::class,
CachePagesCommand::class,
]);
}
}

0 comments on commit 6621341

Please sign in to comment.