src/Routing/Router.php
/**
	 * Registers a namespace. Subsequent route registrations will have their controllers prefixed with
	 * the provided namespace when being required. If the second $callback parameter is supplied, creates a group
	 * instead.
	 *
	 * @param string $namespace
	 * @param Closure|null $callback
	 * @return RouteGroup|void
	 */
Registers a namespace. Subsequent route registrations will have their controllers prefixed with
the provided namespace when being required. If the second $callback parameter is supplied, creates a group
instead.

@param string $namespace
@param Closure|null $callback
@return RouteGroup|void
Registers a namespace . Subsequent route registrations will have their controllers prefixed with the provided namespace when being required . If the second $callback parameter is supplied creates a group instead . @param string $namespace @param Closure|null $callback @return RouteGroup|void
public function createNamespace($namespace, Closure $callback = null) {
		if (!is_null($callback)) {
			return $this->createNamespaceGroup($namespace, $callback);
		}
		$this->currentGroup->setNamespace($namespace);
	}
public function createNamespace ( $ namespace , Closure $ callback = null ) { if ( ! is_null ( $ callback ) ) { return $ this -> createNamespaceGroup ( $ namespace , $ callback ) ; } $ this -> currentGroup -> setNamespace ( $ namespace ) ; }
Registers a namespace.
Registers a namespace .