public function __construct($routes) { if (!is_array($routes)) { $routes = array(); } self::$_routes = $routes; }
public function __construct(\ArrayAccess $config) { $routes = array(); if (isset($config['routes'])) { $routes = $config['routes']; } self::$_routes = $routes; self::$_config = $config; }