Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117883059
VerifyCommand.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
860 B
Referenced Files
None
Subscribers
None
VerifyCommand.php
View Options
<?php
namespace
App\Console\Commands\Resource
;
use
App\Console\Command
;
class
VerifyCommand
extends
Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected
$signature
=
'resource:verify {resource}'
;
/**
* The console command description.
*
* @var string
*/
protected
$description
=
'Verify the state of a resource'
;
/**
* Execute the console command.
*
* @return mixed
*/
public
function
handle
()
{
$resource
=
$this
->
getResource
(
$this
->
argument
(
'resource'
));
if
(!
$resource
)
{
$this
->
error
(
"Resource not found."
);
return
1
;
}
\App\Jobs\Resource\VerifyJob
::
dispatchSync
(
$resource
->
id
);
// TODO: We should check the job result and print an error on failure
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, Apr 6, 12:52 AM (5 d, 7 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18756273
Default Alt Text
VerifyCommand.php (860 B)
Attached To
Mode
rK kolab
Attached
Detach File
Event Timeline