protected static function _parseString($path, $context, array $options = []) {
		if (!preg_match('/^[A-Za-z0-9._\\\\]+::[A-Za-z0-9_]+$/', $path)) {
			$base = rtrim($options['base'], '/');
			if ((!$path || $path[0] != '/') && $context && isset($context->controller)) {
				$formatters = static::formatters();
				$base .= '/' . $formatters['controller']($context->controller);
			}
			$path = trim($path, '/');
			return "{$base}/{$path}";
		}
		list($controller, $action) = explode('::', $path, 2);
		return compact('controller', 'action');
	}
protected static function _parseString($path, $context, array $options = []) {
		if (!preg_match('/^[A-Za-z0-9._\\\\]+::[A-Za-z0-9_]+$/', $path)) {
			$base = rtrim($options['base'], '/');
			if ((!$path || $path[0] != '/') && $context && isset($context->controller)) {
				$formatters = static::formatters();
				$base .= '/' . $formatters['controller']($context->controller);
			}
			$path = trim($path, '/');
			return "{$base}/{$path}";
		}
		list($controller, $action) = explode('::', $path, 2);
		return compact('controller', 'action');
	}
protected static function _parseString ( $ path , $ context , array $ options = [ ] ) { if ( ! preg_match ( '/^[A-Za-z0-9._\\\\]+::[A-Za-z0-9_]+$/' , $ path ) ) { $ base = rtrim ( $ options [ 'base' ] , '/' ) ; if ( ( ! $ path || $ path [ 0 ] != '/' ) && $ context && isset ( $ context -> controller ) ) { $ formatters = static :: formatters ( ) ; $ base .= '/' . $ formatters [ 'controller' ] ( $ context -> controller ) ; } $ path = trim ( $ path , '/' ) ; return "{$base}/{$path}" ; } list ( $ controller , $ action ) = explode ( '::' , $ path , 2 ) ; return compact ( 'controller' , 'action' ) ; }
Helper function for taking a path string and parsing it into a controller and action array.

@param string $path Path string to parse i.e. `li3_bot.Logs::index` or `Posts::index`.
@param boolean $context
@return array
Helper function for taking a path string and parsing it into a controller and action array .