Skip to content

Commit

Permalink
Add hook into the multisite command
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanmcclean authored Feb 14, 2025
1 parent 8439c2c commit 5dd7b9e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Console/Commands/Multisite.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,15 @@
use Statamic\Facades\YAML;
use Statamic\Rules\Handle;
use Statamic\Statamic;
use Statamic\Support\Traits\Hookable;
use Wilderborn\Partyline\Facade as Partyline;

use function Laravel\Prompts\confirm;
use function Laravel\Prompts\text;

class Multisite extends Command
{
use ConfirmableTrait, EnhancesCommands, RunsInPlease, ValidatesInput;
use ConfirmableTrait, EnhancesCommands, RunsInPlease, ValidatesInput, Hookable;

protected $signature = 'statamic:multisite';

Expand Down Expand Up @@ -56,6 +57,8 @@ public function handle()
->addPermissions()
->clearCache();

$this->runHooks('end');

$this->components->info('Successfully converted from single to multisite installation!');

$this->line('You may now manage your sites in the Control Panel at [/cp/sites].');
Expand Down

0 comments on commit 5dd7b9e

Please sign in to comment.