Symfony\Component\DependencyInjection\Definition::getMethodCalls PHP Method

getMethodCalls() public method

Gets the methods to call after service initialization.
public getMethodCalls ( ) : array
return array An array of method calls
    public function getMethodCalls()
    {
        return $this->calls;
    }

Usage Example

 private function then_references_are_replaced_with_services()
 {
     $methodCalls = $this->apiDefinition->getMethodCalls();
     $defaultParams = $methodCalls[0][1][0];
     $this->assertSame('my_value', $defaultParams['my_param']);
     $this->assertInstanceOf('Symfony\\Component\\DependencyInjection\\Reference', $defaultParams[0]);
     $this->assertSame('my_param_service', (string) $defaultParams[0]);
 }
All Usage Examples Of Symfony\Component\DependencyInjection\Definition::getMethodCalls