You are here

class MandrillTemplateServiceProvider in Mandrill 8

Modifies the Mandrill service to allow templated emails to be sent.

Hierarchy

Expanded class hierarchy of MandrillTemplateServiceProvider

File

modules/mandrill_template/src/MandrillTemplateServiceProvider.php, line 16
Contains Drupal\mandrill_template\MandrillTemplateServiceProvider

Namespace

Drupal\mandrill_template
View source
class MandrillTemplateServiceProvider extends ServiceProviderBase {

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

}

Members

Namesort descending Modifiers Type Description Overrides
MandrillTemplateServiceProvider::alter public function Modifies existing service definitions. Overrides ServiceProviderBase::alter
ServiceProviderBase::register public function Registers services to the container. Overrides ServiceProviderInterface::register 1