protected function createRouter($client)
	{
		$prefix = $this->app['request']->getHttpHost();

		$router = new Router(array(), $prefix);

		$routes = array();

		foreach ($this->paths as $path)
		{
			$routes[] = $path . DIRECTORY_SEPARATOR . 'bootstrap' . DIRECTORY_SEPARATOR . $client;
			$routes[] = $path . DIRECTORY_SEPARATOR . 'bootstrap' . DIRECTORY_SEPARATOR . ucfirst($client);
		}

		foreach ($routes as $route)
		{
			$path = $route . DIRECTORY_SEPARATOR . 'routes.php';

			if (file_exists($path))
			{
				require $path;
			}
		}

		return $router;
	}
protected function createRouter($client)
	{
		$prefix = $this->app['request']->getHttpHost();

		$router = new Router(array(), $prefix);

		$routes = array();

		foreach ($this->paths as $path)
		{
			$routes[] = $path . DIRECTORY_SEPARATOR . 'bootstrap' . DIRECTORY_SEPARATOR . $client;
			$routes[] = $path . DIRECTORY_SEPARATOR . 'bootstrap' . DIRECTORY_SEPARATOR . ucfirst($client);
		}

		foreach ($routes as $route)
		{
			$path = $route . DIRECTORY_SEPARATOR . 'routes.php';

			if (file_exists($path))
			{
				require $path;
			}
		}

		return $router;
	}
protected function createRouter ( $ client ) { $ prefix = $ this -> app [ 'request' ] -> getHttpHost ( ) ; $ router = new Router ( array ( ) , $ prefix ) ; $ routes = array ( ) ; foreach ( $ this -> paths as $ path ) { $ routes [ ] = $ path . DIRECTORY_SEPARATOR . 'bootstrap' . DIRECTORY_SEPARATOR . $ client ; $ routes [ ] = $ path . DIRECTORY_SEPARATOR . 'bootstrap' . DIRECTORY_SEPARATOR . ucfirst ( $ client ) ; } foreach ( $ routes as $ route ) { $ path = $ route . DIRECTORY_SEPARATOR . 'routes.php' ; if ( file_exists ( $ path ) ) { require $ path ; } } return $ router ; }
Create a new client instance.

@param   string  $client
@return  object
Create a new client instance .