You are here

MandrillTemplateServiceProvider.php in Mandrill 8

File

modules/mandrill_template/src/MandrillTemplateServiceProvider.php
View source
<?php

/**
 * @file
 * Contains Drupal\mandrill_template\MandrillTemplateServiceProvider
 */
namespace Drupal\mandrill_template;

use Drupal\Core\DependencyInjection\ContainerBuilder;
use Drupal\Core\DependencyInjection\ServiceProviderBase;

/**
 * Modifies the Mandrill service to allow templated emails to be sent.
 */
class MandrillTemplateServiceProvider extends ServiceProviderBase {

  /**
   * {@inheritdoc}
   */
  public function alter(ContainerBuilder $container) {
    $definition = $container
      ->getDefinition('mandrill.service');
    $definition
      ->setClass('Drupal\\mandrill_template\\MandrillTemplateService');
  }

}

Classes

Namesort descending Description
MandrillTemplateServiceProvider Modifies the Mandrill service to allow templated emails to be sent.