public function Definition::removeMethodCall

Removes a method to call after service initialization.

@api

Parameters

string $method The method name to remove:

Return value

Definition The current instance

File

drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Definition.php, line 345

Class

Definition
Definition represents a service definition.

Namespace

Symfony\Component\DependencyInjection

Code

public function removeMethodCall($method) {
  foreach ($this->calls as $i => $call) {
    if ($call[0] === $method) {
      unset($this->calls[$i]);
      break;
    }
  }
  return $this;
}