src/Routing/Router.php
/**
	 * Registers a name prefix. If the second parameter is provided a closure, it creates a name group which applies
	 * to all routes registered within that closure. Otherwise, the prefix applies to all routes defined thereafter,
	 * in the current scope.
	 *
	 * @param string $name
	 * @param Closure|null $callback
	 * @return RouteGroup|void
	 */
Registers a name prefix. If the second parameter is provided a closure, it creates a name group which applies
to all routes registered within that closure. Otherwise, the prefix applies to all routes defined thereafter,
in the current scope.

@param string $name
@param Closure|null $callback
@return RouteGroup|void
Registers a name prefix . If the second parameter is provided a closure it creates a name group which applies to all routes registered within that closure . Otherwise the prefix applies to all routes defined thereafter in the current scope . @param string $name @param Closure|null $callback @return RouteGroup|void
public function createName($name, Closure $callback = null) {
		if (!is_null($callback)) {
			return $this->createNameGroup($name, $callback);
		}
		$this->currentGroup->setName($name);
	}
public function createName ( $ name , Closure $ callback = null ) { if ( ! is_null ( $ callback ) ) { return $ this -> createNameGroup ( $ name , $ callback ) ; } $ this -> currentGroup -> setName ( $ name ) ; }
Registers a name prefix.
Registers a name prefix .