You are here

public function Definition::removeMethodCall in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/dependency-injection/Definition.php \Symfony\Component\DependencyInjection\Definition::removeMethodCall()

Removes a method to call after service initialization.

Parameters

string $method The method name to remove:

Return value

Definition The current instance

File

vendor/symfony/dependency-injection/Definition.php, line 386

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;
}