You are here

public function Definition::hasMethodCall in Zircon Profile 8

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

Check if the current definition has a given method to call after service initialization.

Parameters

string $method The method name to search for:

Return value

bool

File

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

Class

Definition
Definition represents a service definition.

Namespace

Symfony\Component\DependencyInjection

Code

public function hasMethodCall($method) {
  foreach ($this->calls as $call) {
    if ($call[0] === $method) {
      return true;
    }
  }
  return false;
}