Remove a provider.

@param \Ems\Contracts\Mail\MailConfigProvider

@return self
762580
public function remove(MailConfigProvider $provider)
    {
        $this->providers = array_filter($this->providers, function ($known) use ($provider) {
            return spl_object_hash($known) != spl_object_hash($provider);
        });

        return $this;
    }
978822
public void removeProvider(UserTransactionProvider provider)
   {
      UserTransactionProviderImpl impl = providers.get(provider);

      if (impl != null)
      {
         delegator.removeProvider(impl);
         providers.remove(provider);
      }
   }
679338
public function removeDispatcher($name)
    {
        $name = strtolower($name);

        if (isset($this->dispatchers[$name])) {
            unset($this->dispatchers[$name]);
        }

        return $this;
    }
1095684
public function unregister(ResponderInterface $responder)
    {
        $key = array_search($responder, $this->queue, true);
        if ($key !== false) {
            unset($this->queue[$key]);
        }

        return $this;
    }
602077
public function disableCustomerEmail()
    {
        $this->data->email = new stdClass;
        $this->data->email->customer = new stdClass;

        $this->data->email->customer->enabled = false;

        return $this;
    }
857412
def remove_receiver(self, receiver):
        
        if receiver in self.event_receivers:
            self.event_receivers.remove(receiver)
703891
public function remove($key) {
        $key = $this->getAbsoluteConfigKey($key);

        array_remove($this->config, $key);

        return $this;
    }
651655
public function toProvider(string $provider, string $context = '') : self
    {
        $this->untarget = null;
        $this->validate->toProvider($provider);
        $this->bound = (new DependencyFactory)->newProvider(new \ReflectionClass($provider), $context);
        $this->container->add($this);

        return $this;
    }
760337
public function registerProvider(Provider $provider): self
    {
        $this->providers[$provider->getName()] = $provider;

        return $this;
    }
1134202
public function removeSubscribers($subscribers)
    {
        $subscribers = AnConfig::unbox($subscribers);

        if (is($subscribers, 'AnDomainEntityAbstract')) {
            $subscribers = array($subscribers);
        } else {
            $subscribers = (array) $subscribers;
        }

        $ids = $this->subscriberIds->toArray();

        foreach ($subscribers as $subscriber) {
            $id = is($subscriber, 'AnDomainEntityAbstract') ? $subscriber->id : $subscriber;
            unset($ids[$id]);
        }

        $this->set('subscriberIds', AnDomainAttribute::getInstance('set')->setData($ids));

        //if there are no more subscriber then delete the notification
        if (empty($ids)) {
            $this->delete();
        }

        return $this;
    }
144135
function remove(oTarget, oListener, oConfiguration) {
		oConfiguration = oConfiguration || getConfiguration(oTarget, oListener);
		updateConfiguration(oTarget, oListener, oConfiguration, true);
	}
672403
def _configMailer(self):
        
        self._MAILER = Mailer(self.MAILER_HOST, self.MAILER_PORT)
        self._MAILER.login(self.MAILER_USER, self.MAILER_PWD)
610778
public CacheConfigurationBuilder<K, V> remove(ServiceConfiguration<?> configuration) {
    CacheConfigurationBuilder<K, V> otherBuilder = new CacheConfigurationBuilder<>(this);
    otherBuilder.serviceConfigurations.remove(configuration);
    return otherBuilder;
  }
895899
def terminate(self):
        """"""
        logger.debug('Terminating initialized providers')
        for name in list(self.initialized_providers):
            del self[name]
206897
public function removeInstance($className): self
	{
		// Determine the instance name
		$instanceName = strtolower($className);

		if (!isset($this->{$instanceName}))
		{
			throw new FactoryException("Could not remove instance of '".$instanceName."'. Instance was not found.", 1);
		}

		// Unset
		unset($this->{$instanceName});

		// Return itself
		return $this;
	}
1191432
public void removeMetadataProvider(MetadataProvider provider) {
        for (Set<MetadataProvider> providers : metadataProviders.values()) {
            providers.remove(provider);
        }
    }
1101271
def unregister(self, provider):
        '''
        '''
        if isinstance(provider, type):
            provider = provider()
        if isinstance(provider, DataProvider):
            provider = provider.code
        return self.pop(str(provider).upper(), None)