private function addUrlHandler($url, UrlHandler $handler, $children = []) { // If $url is numeric then most likely the $handler can report it's own URL if (!is_numeric($url)) { $handler->setUrl($url); } $name = $handler->getName(); if ($name) { $this->urlHandlers[$name] = $handler; } else { $this->urlHandlers[] = $handler; } }
private function addUrlHandler($url, UrlHandler $handler, $children = []) { $handler->setUrl($url); $name = $handler->getName(); if ($name) { $this->urlHandlers[$name] = $handler; } else { $this->urlHandlers[] = $handler; } }