/**
  * {@inheritdoc}
  */
 public function setDescription(ServiceDescriptionInterface $service)
 {
     $this->addAdditionalOperations($service);
     return parent::setDescription($service);
 }
Пример #2
0
 public function __construct(SettingsManagerInterface $settings, $version = self::LATEST_API_VERSION)
 {
     $mailchimp = $settings->load('mailchimp');
     parent::__construct($mailchimp->get('api_key'), $version);
     $this->getEventDispatcher()->addSubscriber(new ConnectionErrorListener());
 }