1
0
mirror of https://github.com/dannyvankooten/AltoRouter.git synced 2025-08-04 15:37:45 +02:00

CHG: no Hungarian notation, $arRoute -> $routes

This commit is contained in:
sergey-nagaytsev
2014-01-07 13:15:53 +03:00
parent 62e1d6fa75
commit 93e4e4f07e

View File

@@ -9,12 +9,12 @@ class AltoRouter {
/**
* Create router in one call from config.
*
* @param array $arRoute
* @param array $routes
* @param string $basePath
*/
public function __construct( $arRoute = array(), $basePath = '' ) {
public function __construct( $routes = array(), $basePath = '' ) {
$this->basePath = $basePath;
foreach( $arRoute as $route ) {
foreach( $routes as $route ) {
call_user_func_array(array($this,'map'),$route);
}
}