Webiny\Component\ServiceManager\ConfigCompiler::buildCallsArguments PHP Method

buildCallsArguments() private method

Build arguments for "Calls" methods
private buildCallsArguments ( )
    private function buildCallsArguments()
    {
        if ($this->serviceConfig->keyExists('Calls')) {
            $calls = $this->serviceConfig->key('Calls');
            foreach ($calls as $callKey => $call) {
                if ($this->isArray($call[1])) {
                    $newArguments = [];
                    foreach ($call[1] as $arg) {
                        $newArguments[] = new Argument($arg);
                    }
                    $calls[$callKey][1] = $newArguments;
                }
            }
            $this->serviceConfig->key('Calls', $calls);
        }
    }