public function getClosure($method) { if (isset($this->RuleList->closures[$method])) { return $this->RuleList->closures[$method]; } else { throw new \Devise\Support\DeviseException('Unknown Function "' . $method . '" in RuleManager'); } }