Ejemplo n.º 1
0
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;
}
Ejemplo n.º 2
0
function redefine($what, callable $asWhat)
{
    return CallRerouting\connect($what, $asWhat);
}