Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2485278
SuspendCommand.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
828 B
Referenced Files
None
Subscribers
None
SuspendCommand.php
View Options
<?php
namespace
App\Console\Commands\Domain
;
use
App\Console\Command
;
class
SuspendCommand
extends
Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected
$signature
=
'domain:suspend {domain} {--comment=}'
;
/**
* The console command description.
*
* @var string
*/
protected
$description
=
'Suspend a domain'
;
/**
* Execute the console command.
*
* @return mixed
*/
public
function
handle
()
{
$domain
=
$this
->
getDomain
(
$this
->
argument
(
'domain'
));
if
(!
$domain
)
{
$this
->
error
(
"Domain not found."
);
return
1
;
}
$domain
->
suspend
();
\App\EventLog
::
createFor
(
$domain
,
\App\EventLog
::
TYPE_SUSPENDED
,
$this
->
option
(
'comment'
));
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Nov 21, 11:51 AM (1 d, 19 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
387485
Default Alt Text
SuspendCommand.php (828 B)
Attached To
Mode
R2 kolab
Attached
Detach File
Event Timeline
Log In to Comment