Skip to content
Snippets Groups Projects
Commit aef648f6 authored by Oleh Vehera's avatar Oleh Vehera
Browse files

Issue #3349290 by voleger: Provide composer.json file

parent fdb4b348
Branches
Tags
1 merge request!10Issue #3349290: Provide composer.json file
...@@ -4,7 +4,7 @@ Drupal Resque Module ...@@ -4,7 +4,7 @@ Drupal Resque Module
by Arturo Contreras, arturo.kontreras@gmail.com by Arturo Contreras, arturo.kontreras@gmail.com
This module makes use of an existing php resque implementation: This module makes use of an existing php resque implementation:
https://github.com/chrisboulton/php-resque https://github.com/resque/php-resque
This module extends DrupalQueue to be able to use Drupal\resque\Resque instead, This module extends DrupalQueue to be able to use Drupal\resque\Resque instead,
also being able to use Drupal\resque\ResqueUnique so that jobs with the same also being able to use Drupal\resque\ResqueUnique so that jobs with the same
...@@ -17,7 +17,7 @@ This README is for interested developers. ...@@ -17,7 +17,7 @@ This README is for interested developers.
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
* Redis installed locally or use a remote server. * Redis installed locally or use a remote server.
* PHP-Resque library https://github.com/chrisboulton/php-resque version 1.3, * PHP-Resque library https://github.com/resque/php-resque version 1.3,
I recommend using Composer to install to a directory in your app. I recommend using Composer to install to a directory in your app.
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
......
...@@ -3,15 +3,15 @@ ...@@ -3,15 +3,15 @@
* @file * @file
* *
* Contains resque script to startup a drupal worker, * Contains resque script to startup a drupal worker,
* based on https://github.com/chrisboulton/php-resque/blob/master/bin/resque. * based on https://github.com/resque/php-resque/blob/master/bin/resque.
*/ */
define('DRUPAL_ROOT', getenv('DRUPAL_ROOT')); define('DRUPAL_ROOT', getenv('DRUPAL_ROOT'));
define('DRUPAL_COMPOSER_ROOT', getenv('DRUPAL_COMPOSER_ROOT')); define('DRUPAL_COMPOSER_ROOT', getenv('DRUPAL_COMPOSER_ROOT'));
// Include all plugins that are going to run on certain events. // Include all plugins that are going to run on certain events.
require_once DRUPAL_COMPOSER_ROOT . '/modules/contrib/resque/lib/Drupal/resque/Bootstrap.php'; require_once dirname(__DIR__) . '/lib/Drupal/resque/Bootstrap.php';
require_once DRUPAL_COMPOSER_ROOT . '/modules/contrib/resque/lib/Drupal/resque/UniquePlugin.php'; require_once dirname(__DIR__) . '/lib/Drupal/resque/UniquePlugin.php';
// Bootstrap db so we can get variable configs to redis host. // Bootstrap db so we can get variable configs to redis host.
require_once DRUPAL_ROOT . '/includes/bootstrap.inc'; require_once DRUPAL_ROOT . '/includes/bootstrap.inc';
......
{
"name": "drupal/resque",
"description": "Resque queue backend.",
"type": "drupal-module",
"require": {
"resque/php-resque": "^1.3"
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment