I am new to PHP. I am trying to read the code in Symfony 2 app
, and I am not able to understand what is this function.
Can anyone please explain to me what this function is doing. I am not able to get how is this variable defined
$def = function($name, $class, $args=[]) use ($container){
return $container->doStuff($name, $class);
};
What is use
doing there?