public function match($methods, $uri, $action = null) { return $this->addRoute(array_map('strtoupper', (array) $methods), $uri, $action); }
/** * Register routes from an array * * @param array $data * * @return void */ protected function registerRoutes(array $data) { foreach ($data as $method => $routes) { if (in_array($method, $this->verbs)) { foreach ($routes as $uri => $action) { $this->router->match(array($method), $uri, $action); } } } }