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:
@@ -9,12 +9,12 @@ class AltoRouter {
|
|||||||
/**
|
/**
|
||||||
* Create router in one call from config.
|
* Create router in one call from config.
|
||||||
*
|
*
|
||||||
* @param array $arRoute
|
* @param array $routes
|
||||||
* @param string $basePath
|
* @param string $basePath
|
||||||
*/
|
*/
|
||||||
public function __construct( $arRoute = array(), $basePath = '' ) {
|
public function __construct( $routes = array(), $basePath = '' ) {
|
||||||
$this->basePath = $basePath;
|
$this->basePath = $basePath;
|
||||||
foreach( $arRoute as $route ) {
|
foreach( $routes as $route ) {
|
||||||
call_user_func_array(array($this,'map'),$route);
|
call_user_func_array(array($this,'map'),$route);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user