App uses counter for ID instead of random
This commit is contained in:
parent
0edd37af3f
commit
e7541fdfcf
@ -38,6 +38,8 @@ class App {
|
|||||||
*/
|
*/
|
||||||
protected $httpHost;
|
protected $httpHost;
|
||||||
|
|
||||||
|
protected $_routeCounter = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $httpHost
|
* @param string $httpHost
|
||||||
* @param int $port
|
* @param int $port
|
||||||
@ -90,7 +92,7 @@ class App {
|
|||||||
$decorated = $controller;
|
$decorated = $controller;
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->routes->add(uniqid(), new Route($path, array('_controller' => $decorated), array(), array(), $this->httpHost));
|
$this->routes->add('rr-' . ++$this->_routeCounter, new Route($path, array('_controller' => $decorated), array(), array(), $this->httpHost));
|
||||||
|
|
||||||
return $decorated;
|
return $decorated;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user