Page MenuHomePhorge

UnsuspendCommand.php
No OneTemporary

Authored By
Unknown
Size
843 B
Referenced Files
None
Subscribers
None

UnsuspendCommand.php

<?php
namespace App\Console\Commands\Group;
use App\Console\Command;
use App\EventLog;
class UnsuspendCommand extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'group:unsuspend {group} {--comment=}';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Remove a group suspension';
/**
* Execute the console command.
*
* @return mixed
*/
public function handle()
{
$group = $this->getGroup($this->argument('group'));
if (!$group) {
$this->error("Group not found.");
return 1;
}
$group->unsuspend();
EventLog::createFor($group, EventLog::TYPE_UNSUSPENDED, $this->option('comment'));
}
}

File Metadata

Mime Type
text/x-php
Expires
Fri, Apr 24, 1:29 PM (11 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18741462
Default Alt Text
UnsuspendCommand.php (843 B)

Event Timeline