public function dispatch($options) { $locale = strtoupper($this->request->getLocale()); $methodName = sprintf('%s%s', 'isValid', $locale); if (method_exists($this, $methodName)) { return call_user_func(array($this, $methodName), $options); } return true; }