Skip to content
Snippets Groups Projects
Verified Commit a5826e68 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3416826 by longwave, catch, smustgrave, solideogloria, fgm: Queue...

Issue #3416826 by longwave, catch, smustgrave, solideogloria, fgm: Queue factory services do not conform to an interface
parent 7792643c
No related branches found
No related tags found
6 merge requests!8376Drupal views: adding more granularity to the ‘use ajax’ functionality,!8300Issue #3443586 View area displays even when parent view has no results.,!7567Issue #3153723 by quietone, Hardik_Patel_12: Change the scaffolding...,!7565Issue #3153723 by quietone, Hardik_Patel_12: Change the scaffolding...,!7509Change label "Block description" to "Block type",!7344Issue #3292350 by O'Briat, KlemenDEV, hswong3i, smustgrave, quietone: Update...
Pipeline #121423 passed with warnings
Pipeline: drupal

#121425

    ......@@ -5,9 +5,9 @@
    use Drupal\Core\Database\Connection;
    /**
    * Defines the key/value store factory for the database backend.
    * Defines the queue factory for the database backend.
    */
    class QueueDatabaseFactory {
    class QueueDatabaseFactory implements QueueFactoryInterface {
    /**
    * The database connection.
    ......@@ -20,20 +20,14 @@ class QueueDatabaseFactory {
    * Constructs this factory object.
    *
    * @param \Drupal\Core\Database\Connection $connection
    * The Connection object containing the key-value tables.
    * The Connection object containing the queue table.
    */
    public function __construct(Connection $connection) {
    $this->connection = $connection;
    }
    /**
    * Constructs a new queue object for a given name.
    *
    * @param string $name
    * The name of the collection holding key and value pairs.
    *
    * @return \Drupal\Core\Queue\DatabaseQueue
    * A key/value store implementation for the given $collection.
    * {@inheritdoc}
    */
    public function get($name) {
    return new DatabaseQueue($name, $this->connection);
    ......
    <?php
    namespace Drupal\Core\Queue;
    /**
    * An interface defining queue factory classes.
    */
    interface QueueFactoryInterface {
    /**
    * Constructs a new queue object for a given name.
    *
    * @param string $name
    * The name of the queue.
    *
    * @return \Drupal\Core\Queue\QueueInterface
    * The queue object.
    */
    public function get($name);
    }
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment