Skip to content

Commit

Permalink
[5.x] Add hook into the multisite command (#11458)
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanmcclean authored Feb 17, 2025
1 parent 22e90f3 commit 69fb5f5
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, Hookable, RunsInPlease, ValidatesInput;

protected $signature = 'statamic:multisite';

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

$this->runHooks('after');

$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 69fb5f5

Please sign in to comment.