public function createDefaultPageRoutes(IRouter $routes, string $url): void
	{
		if ($this->configurator->onePage) {
			$routes[] = new Route($url, $this->onePageLink);
			$routes[] = new Route($url . 'index.php', $this->onePageLink, Route::ONE_WAY);
			$routes[] = new Route($url . '<presenter>[/<action>]', $this->defaultLink);

		} else {
			$routes[] = new Route($url, $this->defaultLink);
			$routes[] = new Route($url . 'index.php', $this->defaultLink, Route::ONE_WAY);
			$routes[] = new Route($url . '<presenter>[/<action>]', $this->defaultLink);
		}
	}
public function createDefaultPageRoutes(IRouter $routes, string $url): void
	{
		if ($this->configurator->onePage) {
			$routes[] = new Route($url, $this->onePageLink);
			$routes[] = new Route($url . 'index.php', $this->onePageLink, Route::ONE_WAY);
			$routes[] = new Route($url . '<presenter>[/<action>]', $this->defaultLink);

		} else {
			$routes[] = new Route($url, $this->defaultLink);
			$routes[] = new Route($url . 'index.php', $this->defaultLink, Route::ONE_WAY);
			$routes[] = new Route($url . '<presenter>[/<action>]', $this->defaultLink);
		}
	}
public function createDefaultPageRoutes ( IRouter $ routes , string $ url ) : void { if ( $ this -> configurator -> onePage ) { $ routes [ ] = new Route ( $ url , $ this -> onePageLink ) ; $ routes [ ] = new Route ( $ url . 'index.php' , $ this -> onePageLink , Route :: ONE_WAY ) ; $ routes [ ] = new Route ( $ url . '<presenter>[/<action>]' , $ this -> defaultLink ) ; } else { $ routes [ ] = new Route ( $ url , $ this -> defaultLink ) ; $ routes [ ] = new Route ( $ url . 'index.php' , $ this -> defaultLink , Route :: ONE_WAY ) ; $ routes [ ] = new Route ( $ url . '<presenter>[/<action>]' , $ this -> defaultLink ) ; } }
Vytvori routy defaultni stranky
@param IRouter $routes
@param string $url
Vytvori routy defaultni stranky