file = Config::DIR_SYSTEM() . '' . str_replace('../', '', $path) . '.php'; $this->class = 'System' . preg_replace(self::REGEX_CLASS_SANITIZE, '', $path); $this->classAlt = [ 'legacy' => $this->class, 'direct' => preg_replace(self::REGEX_CLASS_SANITIZE, '', $part) ]; array_shift($parts); break; } } if ($args) { $this->args = $args; } $method = array_shift($parts); if ($method) { $this->method = $method; } else { $this->method = 'index'; } } }