Commit c91c18f8 authored by dpi's avatar dpi

Changed namespace of IdentityChannelManager service.

parent e4d943bf
......@@ -7,4 +7,4 @@ courier.config:
title: 'Courier settings'
parent: system.admin_config_communication
description: 'Manage Courier settings.'
route_name: courier.configs
\ No newline at end of file
route_name: courier.config
\ No newline at end of file
services:
plugin.manager.identity_channel:
class: Drupal\courier\IdentityChannelManager
class: Drupal\courier\Service\IdentityChannelManager
parent: default_plugin_manager
courier.manager:
class: Drupal\courier\Service\CourierManager
......
......@@ -7,12 +7,12 @@
namespace Drupal\courier;
use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Entity\FieldableEntityInterface;
/**
* Defines an interface for channels (templates).
*/
interface ChannelInterface extends EntityInterface {
interface ChannelInterface extends FieldableEntityInterface {
/**
* Applies tokens to relevant fields.
......
......@@ -110,7 +110,7 @@ class MessageQueueItem extends ContentEntityBase implements MessageQueueItemInte
$channel_options = array_key_exists('channels', $options) ? $options['channels'] : [];
unset($options['channels']);
/** @var \Drupal\courier\IdentityChannelManagerInterface $icm */
/** @var \Drupal\courier\Service\IdentityChannelManagerInterface $icm */
$icm = \Drupal::service('plugin.manager.identity_channel');
// Instead of iterating over messages, get the identity' channel preferences
......
......@@ -13,7 +13,7 @@ use Drupal\Core\Entity\EntityManagerInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Render\Element;
use Drupal\courier\IdentityChannelManager;
use Drupal\courier\Service\IdentityChannelManager;
/**
* Configure Courier settings.
......@@ -30,7 +30,7 @@ class Settings extends ConfigFormBase {
/**
* The identity channel manager.
*
* @var \Drupal\courier\IdentityChannelManager
* @var \Drupal\courier\Service\IdentityChannelManager
*/
protected $identityChannelManager;
......@@ -41,7 +41,7 @@ class Settings extends ConfigFormBase {
* The factory for configuration objects.
* @param \Drupal\Core\Entity\EntityManagerInterface $entity_manager
* The entity manager.
* @param \Drupal\courier\IdentityChannelManager $identity_channel_manager
* @param \Drupal\courier\Service\IdentityChannelManager $identity_channel_manager
* The identity channel manager.
*/
public function __construct(ConfigFactoryInterface $config_factory, EntityManagerInterface $entity_manager, IdentityChannelManager $identity_channel_manager) {
......
......@@ -10,7 +10,7 @@ namespace Drupal\courier\Service;
use Symfony\Component\DependencyInjection\ContainerAwareTrait;
use Drupal\courier\TemplateCollectionInterface;
use Drupal\Core\Entity\EntityInterface;
use Drupal\courier\IdentityChannelManagerInterface;
use Drupal\courier\Service\IdentityChannelManagerInterface;
use Drupal\Core\Entity\EntityManagerInterface;
use Drupal\courier\Entity\MessageQueueItem;
use Drupal\courier\Exception\IdentityException;
......@@ -31,7 +31,7 @@ class CourierManager implements CourierManagerInterface {
/**
* The identity channel manager.
*
* @var \Drupal\courier\IdentityChannelManager
* @var \Drupal\courier\Service\IdentityChannelManager
*/
protected $identityChannelManager;
......@@ -40,7 +40,7 @@ class CourierManager implements CourierManagerInterface {
*
* @param \Drupal\Core\Entity\EntityManagerInterface $entity_manager
* The entity manager.
* @param \Drupal\courier\IdentityChannelManagerInterface $identity_channel_manager
* @param \Drupal\courier\Service\IdentityChannelManagerInterface $identity_channel_manager
* The identity channel manager.
*/
public function __construct(EntityManagerInterface $entity_manager, IdentityChannelManagerInterface $identity_channel_manager) {
......
......@@ -2,10 +2,10 @@
/**
* @file
* Contains \Drupal\courier\IdentityChannelManager.
* Contains \Drupal\courier\Service\IdentityChannelManager.
*/
namespace Drupal\courier;
namespace Drupal\courier\Service;
use Drupal\Component\Plugin\FallbackPluginManagerInterface;
use Drupal\Core\Cache\CacheBackendInterface;
......
......@@ -2,10 +2,10 @@
/**
* @file
* Contains \Drupal\courier\IdentityChannelManagerInterface.
* Contains \Drupal\courier\Service\IdentityChannelManagerInterface.
*/
namespace Drupal\courier;
namespace Drupal\courier\Service;
use Drupal\Core\Entity\EntityInterface;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment