Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
use Statamic\Facades\Site;
use Statamic\Facades\User;
use Statamic\Providers\AddonServiceProvider;
use Statamic\SeoPro\Commands\GenerateReportCommand;
use Statamic\SeoPro\Commands\PurgeErrorsCommand;
use Statamic\SeoPro\Events\RedirectSaved;
use Statamic\SeoPro\GraphQL\AlternateLocaleType;
Expand Down Expand Up @@ -58,6 +59,10 @@ class ServiceProvider extends AddonServiceProvider

public function register()
{
// Statamic discovers commands automatically, but only when running in the console.
// To call this in a web request, we need to register it manually.
$this->commands([GenerateReportCommand::class]);

$this->registerSerializableClasses([
Error::class,
Page::class,
Expand Down
Loading