Open nazar-pc opened 8 years ago
Other use cases in Symfony context: Meta config:
{
"registrar": [
{
"provider": "symfony.parameterbag_keys",
"language": "php",
"signature": [
"Symfony\\Component\\HttpFoundation\\ParameterBag::get",
"Symfony\\Component\\HttpFoundation\\ParameterBag::set",
"Symfony\\Component\\HttpFoundation\\ParameterBag::has",
"Symfony\\Component\\HttpFoundation\\Request::get"
]
}
],
"providers": [
{
"name": "symfony.parameterbag_keys",
"source": {
"contributor": "argument",
"parameters": [
"Symfony\\Component\\HttpFoundation\\ParameterBag::get",
"Symfony\\Component\\HttpFoundation\\ParameterBag::set",
"Symfony\\Component\\HttpFoundation\\ParameterBag::has",
"Symfony\\Component\\HttpFoundation\\Request::get"
]
}
}
]
}
Some PHP code:
$bla = $request->query->get('bla');
In other places, you get autocompletion and maybe goto:
if($request->query->has('<CARET>'))
Similar applies to Symfony\Component\HttpFoundation\Session\Flash\FlashBagInterface
My use case:
are all dependent on
$event
argument used in following call:So basically I need to find all
->fire()
calls with events names and be able to use them for autocompletion in->on()
,->once()
and->off()
calls.I imagine this something like:
which means that argument with index
0
of methodcs\\Event::fire
.