Inside my Silex app I need a function which basically does a file_get_contents() my idea was to use something like
$app['funky_service'] = function () {
$content = file_get_contents();
return $content;
}
this is working fine, but how can I pass parameters to this function? I can call it like this
$fs = $app['funky_service'];
but passing arguments to it is still puzzling my