protected function getSegments($pattern)
	{
		$segments = array();
		$parts = \explode("/", ltrim($pattern, "/"));

		foreach ($parts as $segment)
		{
			if (\strpos($segment, ":") !== false)
			{
				$segments[] = $this->parseSegment($segment);
			}
		}

		return $segments;
	}
protected function getSegments($pattern)
	{
		$segments = array();
		$parts = \explode("/", ltrim($pattern, "/"));

		foreach ($parts as $segment)
		{
			if (\strpos($segment, ":") !== false)
			{
				$segments[] = $this->parseSegment($segment);
			}
		}

		return $segments;
	}
protected function getSegments ( $ pattern ) { $ segments = array ( ) ; $ parts = \ explode ( "/" , ltrim ( $ pattern , "/" ) ) ; foreach ( $ parts as $ segment ) { if ( \ strpos ( $ segment , ":" ) !== false ) { $ segments [ ] = $ this -> parseSegment ( $ segment ) ; } } return $ segments ; }
Gets an array of url segments

@param  string $pattern The route pattern
@return array           An array containing url segments
Gets an array of url segments