function redefine($subject, callable $content) { $handle = null; foreach (array_slice(func_get_args(), 1) as $content) { $handle = CallRerouting\connect($subject, $content, $handle); } $handle->silence(); return $handle; }
function redefine($what, callable $asWhat) { return CallRerouting\connect($what, $asWhat); }