Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F8223586
InfoCommand.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
InfoCommand.php
View Options
<?php
namespace
App\Console\Commands\Group
;
use
App\Console\Command
;
class
InfoCommand
extends
Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected
$signature
=
'group:info {group}'
;
/**
* The console command description.
*
* @var string
*/
protected
$description
=
"Print a group information."
;
/**
* Execute the console command.
*
* @return mixed
*/
public
function
handle
()
{
$input
=
$this
->
argument
(
'group'
);
$group
=
$this
->
getObject
(
\App\Group
::
class
,
$input
,
'email'
);
if
(
empty
(
$group
))
{
$this
->
error
(
"Group {$input} does not exist."
);
return
1
;
}
$this
->
info
(
'Id: '
.
$group
->
id
);
$this
->
info
(
'Email: '
.
$group
->
email
);
$this
->
info
(
'Status: '
.
$group
->
status
);
// TODO: Print owner/wallet
foreach
(
$group
->
members
as
$member
)
{
$this
->
info
(
'Member: '
.
$member
);
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Thu, Jul 9, 9:24 PM (1 d, 17 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1057212
Default Alt Text
InfoCommand.php (1 KB)
Attached To
Mode
R2 kolab
Attached
Detach File
Event Timeline
Log In to Comment