1. Go to this page and download the library: Download aureja/job-queue-bundle 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/ */
aureja / job-queue-bundle example snippets
class AppKernel extends Kernel
{
/**
* {@inheritdoc}
*/
public function registerBundles()
{
$bundles = [
// ...
new Aureja\Bundle\JobQueueBundle\AurejaJobQueueBundle(),
// ...
];
}
}
// src/Acme/YourBundle/Entity/JobReport.php
namespace Acme\YourBundle\Entity;
use Aureja\JobQueue\Model\JobReport as BaseJobReport;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
* @ORM\Table(name="aureja_job_report")
*/
class JobReport extends BaseJobReport
{
/**
* {@inheritdoc}
*
* @ORM\Id
* @ORM\Column(type="integer")
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $id;
/**
* {@inheritdoc}
*
* @ORM\ManyToOne(targetEntity="Acme\YourBundle\Entity\JobConfiguration")
* @ORM\JoinColumn(name="configuration_id", nullable=false, onDelete="CASCADE")
*/
protected $configuration;
// Your custom logic if needed.
}
// src/Acme/YourBundle/Entity/JobConfiguration.php
namespace Acme\YourBundle\Entity;
use Aureja\JobQueue\Model\JobConfiguration as BaseJobConfiguration;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
* @ORM\Table(name="aureja_job_configuration")
*/
class JobConfiguration extends BaseJobConfiguration
{
/**
* {@inheritdoc}
*
* @ORM\Id
* @ORM\Column(type="integer")
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $id;
// Your custom logic if needed.
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.