no message
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
<?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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user