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