Version 1
[yaffs-website] / vendor / drush / drush / tests / resources / requeue_script.php
diff --git a/vendor/drush/drush/tests/resources/requeue_script.php b/vendor/drush/drush/tests/resources/requeue_script.php
new file mode 100644 (file)
index 0000000..03a4aff
--- /dev/null
@@ -0,0 +1,12 @@
+<?php
+
+/**
+ * @file
+ * Creates the woot_requeue_exception queue and adds an item to it.
+ *
+ * @see WootRequeueException
+ */
+
+$queue_factory = \Drupal::service('queue');
+$queue = $queue_factory->get('woot_requeue_exception', TRUE);
+$queue->createItem(['foo' => 'bar']);