Page MenuHomePhorge

VerifyCommand.php
No OneTemporary

Authored By
Unknown
Size
860 B
Referenced Files
None
Subscribers
None

VerifyCommand.php

<?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

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)

Event Timeline