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