public function setRoute($path, $cb) { $routeName = ltrim($path, '/'); $this->routes[$routeName] = $cb; return true; }