You are here

public function JobExecutor::__construct in Apigee Edge 8

JobExecutor constructor.

Parameters

\Drupal\Core\Database\Connection $connection: Database connection.

\Drupal\Component\Datetime\TimeInterface $time: Time interface.

\Drupal\Core\Queue\QueueFactory $queue_factory: Queue factory.

File

src/JobExecutor.php, line 63

Class

JobExecutor
Job executor service.

Namespace

Drupal\apigee_edge

Code

public function __construct(Connection $connection, TimeInterface $time, QueueFactory $queue_factory) {
  $this->connection = $connection;
  $this->time = $time;
  $this->queue = $queue_factory
    ->get('apigee_edge_job');
}