remove the Beanstalkd testing code from Laravel
This commit is contained in:
parent
d96bf4b177
commit
94fddca547
@ -32,10 +32,8 @@ class TestingController extends Controller
|
|||||||
// Testing Cache (Redis)
|
// Testing Cache (Redis)
|
||||||
Cache::pull('test');
|
Cache::pull('test');
|
||||||
|
|
||||||
// Testing Queue (Beanstalkd)
|
|
||||||
$this->dispatch(new TestingQueue());
|
|
||||||
|
|
||||||
return view('welcome');
|
return view('welcome');
|
||||||
|
|
||||||
} catch(Exception $e) {
|
} catch(Exception $e) {
|
||||||
echo $e->getMessage();
|
echo $e->getMessage();
|
||||||
}
|
}
|
||||||
|
@ -1,24 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace App\Jobs;
|
|
||||||
|
|
||||||
use App\Jobs\Job;
|
|
||||||
use Illuminate\Queue\SerializesModels;
|
|
||||||
use Illuminate\Queue\InteractsWithQueue;
|
|
||||||
use Illuminate\Contracts\Bus\SelfHandling;
|
|
||||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
|
||||||
|
|
||||||
class TestingQueue extends Job implements SelfHandling, ShouldQueue
|
|
||||||
{
|
|
||||||
use InteractsWithQueue, SerializesModels;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Execute the job.
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
|
||||||
public function handle()
|
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user