public function getClass() { if ($uriString = $this->path(0)) { if ($this->stripUriString($uriString)) { return $uriString; } throw new RunException('Invalid controller name: ' . htmlentities($uriString)); } return $this->defaultController; }