PHP code example of ddaproduction / evocms-queue

1. Go to this page and download the library: Download ddaproduction/evocms-queue library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

ddaproduction / evocms-queue example snippets



namespace EvolutionCMS\Main\Jobs;

use EvolutionCMS\EvocmsQueue\AbstractJob;
use Illuminate\Queue\InteractsWithQueue;

class Foo extends AbstractJob
{
    use InteractsWithQueue;

    /**
     * Execute the job.
     */
    public function handle()
    {
        // do something
    }

}
 
$q = evo()->make('queue');
$q->push(new Foo());

\Illuminate\Support\Facades\Queue::push(new \EvolutionCMS\Main\Jobs\Foo());