src/Core/Delegate.php
function on($name, Closure $f)
    {
        $this->action_container->add($name, $f);
        return $this;
    }
function on($name, Closure $f)
    {
        $this->action_container->add($name, $f);
        return $this;
    }
注册运行时匿名函数

@param string $name
@param Closure $f
@return $this