src/Router/Scope.php
public function prefix($prefix) {
		// Reset values before matching.
		$this->prefix = $this->parentPrefix;
		$this->requestPathOffset = $this->parentRequestPathOffset;
		if ($this->parentPrefixMatched) {
			$this->prefixMatched = $this->parentPrefixMatched;
		}

		if (!$this->result->hasHandler() && $this->prefixMatched) {
			$this->prefixMatched = $this->matchPartial($prefix);
		}

		$this->prefix .= $prefix;

		return $this;
	}
public function prefix($prefix) {
		// Reset values before matching.
		$this->prefix = $this->parentPrefix;
		$this->requestPathOffset = $this->parentRequestPathOffset;
		if ($this->parentPrefixMatched) {
			$this->prefixMatched = $this->parentPrefixMatched;
		}

		if (!$this->result->hasHandler() && $this->prefixMatched) {
			$this->prefixMatched = $this->matchPartial($prefix);
		}

		$this->prefix .= $prefix;

		return $this;
	}
public function prefix ( $ prefix ) { // Reset values before matching. $ this -> prefix = $ this -> parentPrefix ; $ this -> requestPathOffset = $ this -> parentRequestPathOffset ; if ( $ this -> parentPrefixMatched ) { $ this -> prefixMatched = $ this -> parentPrefixMatched ; } if ( ! $ this -> result -> hasHandler ( ) && $ this -> prefixMatched ) { $ this -> prefixMatched = $ this -> matchPartial ( $ prefix ) ; } $ this -> prefix .= $ prefix ; return $ this ; }
Set a common path prefix for all routes.

@param string $prefix
@return self
Set a common path prefix for all routes .