/** * Gets the requested path for the router * @return string */ public function getRequestedPath() { $query = $this->cli->getArgument(0, ''); if ($query) { $query = ltrim($query, Request::QUERY_SEPARATOR); $query = rtrim($query, Request::QUERY_SEPARATOR); } return $query; }
/** * Get a argument of this environment * @param string $name name of the argument * @param mixed $default default value for when the argument is not set * @return mixed the value of the argument or the provided default value if the value is not set */ public function getArgument($name, $default = null) { return $this->cli->getArgument($name, $default); }