CodeExplorer convertParameters example
$data =
$this->container->
getParameterBag()->
all();
if (!
$data) { return;
} if ($this->container->
isCompiled()) { $data =
$this->
escape($data);
} $parameters =
$this->document->
createElement('parameters'
);
$parent->
appendChild($parameters);
$this->
convertParameters($data, 'parameter',
$parameters);
} private function addMethodCalls(array
$methodcalls, \DOMElement
$parent): void
{ foreach ($methodcalls as $methodcall) { $call =
$this->document->
createElement('call'
);
$call->
setAttribute('method',
$methodcall[0
]);
if (\
count($methodcall[1
])) { $this->
convertParameters($methodcall[1
], 'argument',
$call);
} if ($methodcall[2
] ?? false
) { $data =
$this->container->
getParameterBag()->
all();
if (!
$data) { return;
} if ($this->container->
isCompiled()) { $data =
$this->
escape($data);
} $parameters =
$this->document->
createElement('parameters'
);
$parent->
appendChild($parameters);
$this->
convertParameters($data, 'parameter',
$parameters);
} private function addMethodCalls(array
$methodcalls, \DOMElement
$parent): void
{ foreach ($methodcalls as $methodcall) { $call =
$this->document->
createElement('call'
);
$call->
setAttribute('method',
$methodcall[0
]);
if (\
count($methodcall[1
])) { $this->
convertParameters($methodcall[1
], 'argument',
$call);
} if ($methodcall[2
] ?? false
) {