26 lines
411 B
PHP
26 lines
411 B
PHP
<?php
|
|
|
|
namespace App;
|
|
|
|
|
|
use Nette\Application\Routers\IRoute;
|
|
use Nette\Application\Routers\Route;
|
|
use Nette\Application\Routers\RouteList;
|
|
use Nette\StaticClass;
|
|
|
|
class RouterFactory
|
|
{
|
|
use StaticClass;
|
|
|
|
/**
|
|
* @return IRouter
|
|
*/
|
|
|
|
public static function createRouter()
|
|
{
|
|
$router = new RouteList;
|
|
$router[]= new Route('<presenter>/<action>[/<id>]', 'Calculator:default');
|
|
return $router;
|
|
}
|
|
}
|