src/Runtime/ClosureContainer.php
function has($name, & $closure = null)
    {
        if (isset($this->actions[$name])) {
            $closure = $this->actions[$name];
            return true;
        }

        return false;
    }
function has($name, & $closure = null)
    {
        if (isset($this->actions[$name])) {
            $closure = $this->actions[$name];
            return true;
        }

        return false;
    }
检查指定的匿名方法是否已经注册

@param string $name
@param Closure|null $closure
@return bool